10e3c [Solved] php5-gd requires X? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old April 21st, 2011, 18:42
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default php5-gd requires X?

Hi all,

I am trying to install www/joomla on my FreeBSD 8.1 server.

At some point, the make process wants to install graphics/php5-gd. However, this port in turn appears to have some X dependencies, and starts downloading LibX11:

Code:
...
php5-gd-5.3.6 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found
===>    Verifying install for /usr/local/libdata/pkgconfig/xpm.pc in /usr/ports/x11/libXpm
===>   libXpm-3.5.7 depends on file: /usr/local/libdata/pkgconfig/xextproto.pc - found
===>   libXpm-3.5.7 depends on file: /usr/local/libdata/pkgconfig/xproto.pc - found
===>   libXpm-3.5.7 depends on file: /usr/local/libdata/pkgconfig/x11.pc - not found
===>    Verifying install for /usr/local/libdata/pkgconfig/x11.pc in /usr/ports/x11/libX11
===>  License check disabled, port has not defined LICENSE
===>  Extracting for libX11-1.3.6,1
=> SHA256 Checksum mismatch for xorg/lib/libX11-1.3.6.tar.bz2.
===>  Refetch for 1 more times files: xorg/lib/libX11-1.3.6.tar.bz2 
===>  License check disabled, port has not defined LICENSE
=> libX11-1.3.6.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xorg/lib.
=> Attempting to fetch ftp://ftp.cs.cuhk.edu.hk/pub/X11/individual/lib/libX11-1.3.6.tar.bz2
^C
Surely it must be possible to install the php5 components Joomla requires without needing to install X?

Last edited by DutchDaemon; April 22nd, 2011 at 01:15.
Reply With Quote
  #2  
Old April 21st, 2011, 19:16
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,399
Thanks: 60
Thanked 147 Times in 131 Posts
Default

Edit out the two characters gd in the joomla Makefile? If not, maybe possible but I'm uncertain, deselect everything X related in PHP5 prior to the above. Just conjecture on both points, first seems more likely. Chance a joomla theme or install may fail even if installed that way, due to some script assuming the gd module(s) exist.
Reply With Quote
  #3  
Old April 21st, 2011, 19:37
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default

Thanks, that worked. I removed gd from the USE_PHP parameter in both the Joomla Makefile as well that of a dependency, print/pecl-pdflib, and now it has installed successfully.

I will ask in a Joomla forum what the deal is with the php5-gd requirement.

Last edited by DutchDaemon; April 22nd, 2011 at 01:16.
Reply With Quote
  #4  
Old April 21st, 2011, 20:24
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default

PS: For what it is worth, here is the bit where things went wrong with the php5-gd make:
Code:
...
===>   php5-gd-5.3.6 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found
===>    Verifying install for /usr/local/libdata/pkgconfig/xpm.pc in /usr/ports/x11/libXpm
===>   libXpm-3.5.7 depends on file: /usr/local/libdata/pkgconfig/xextproto.pc - found
===>   libXpm-3.5.7 depends on file: /usr/local/libdata/pkgconfig/xproto.pc - found
===>   libXpm-3.5.7 depends on file: /usr/local/libdata/pkgconfig/x11.pc - not found
...
From x11/libXpm:
Code:
$ cat pkg-descr 
This package contains the X Pixmap library.
I am pretty sure I don't want to install this on my server nor the rest of that stuff.

However, if I go to graphics/php5-gd and look at the Makefile:
Code:
$ cat pkg-descr 
# New ports collection makefile for:        php5-gd
# Date created:                 7 Jul 2004
# Whom:                         Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD: ports/graphics/php5-gd/Makefile,v 1.5 2009/12/29 14:39:10 ale Exp $
#

CATEGORIES=     graphics

MASTERDIR=      ${.CURDIR}/../../lang/php5

PKGNAMESUFFIX=  -gd

.include "${MASTERDIR}/Makefile"
There is no explicit reference to libXpm

At this point, the question is hypothetical, as I don't yet know whether I absolutely NEED php5-gd for Joomla, but if I did how might I disable this dependency?

Last edited by DutchDaemon; April 22nd, 2011 at 01:16.
Reply With Quote
  #5  
Old April 21st, 2011, 20:54
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,850
Thanks: 444
Thanked 1,827 Times in 1,494 Posts
Default

The maintainer put in that dependency, so you might want to think twice about just editing it out. There are some applications that need a few of the X libraries, but not all of xorg.

You might want to check through your options settings. graphics/gd has an option to disable XPM support.
Reply With Quote
  #6  
Old April 21st, 2011, 21:39
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default

Yes, I realize that editing "gd" out is risky.

If I run make config in graphics/gd, XPM appears to be disabled by default. Not sure how this helps me.

Last edited by DutchDaemon; April 22nd, 2011 at 01:17.
Reply With Quote
  #7  
Old April 21st, 2011, 21:55
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,850
Thanks: 444
Thanked 1,827 Times in 1,494 Posts
Default

I thought that php5-gd depended on graphics/gd, but it doesn't. Since graphics/php5-gd is just a slave port, the real stuff is going on in the master port's Makefile, in lang/php5. And it's not in the main Makefile, but Makefile.ext. Look at the gd parts in there. It appears that as long as you have WITHOUT_X11 set, it should do the right thing, installing only the libraries required for pixmaps.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
cbrace (April 22nd, 2011)
  #8  
Old April 22nd, 2011, 00:25
cbrace cbrace is offline
Member
 
Join Date: Feb 2010
Location: A'dam
Posts: 144
Thanks: 50
Thanked 2 Times in 2 Posts
Default

Got it, thanks. A quick Google search revealed that adding
Code:
WITHOUT_X11=yes
to /etc/make.conf was what was needed. graphics/php5-gd then compiled without any X11 libraries.

Last edited by DutchDaemon; April 22nd, 2011 at 01:17.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh requires lots of time for login krnlpk Web & Network Services 10 June 16th, 2013 04:59
[Solved] PHP5 upgrade problems - php5-pcre Ronaldr Installation and Maintenance of FreeBSD Ports or Packages 8 November 5th, 2010 08:28
[Solved] mplayer audio CD playback requires root? noz Multimedia 1 October 26th, 2010 00:39
[Solved] clamav now requires python? Ruler2112 Installation and Maintenance of FreeBSD Ports or Packages 11 April 13th, 2010 17:58
reinstall midnight commander and all Requires with portmaster mfaridi Installation and Maintenance of FreeBSD Ports or Packages 4 December 30th, 2009 23:20


All times are GMT +1. The time now is 21:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0