PHP5-GD and X11 requirement

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Oct 3 12:52:07 PDT 2004


On Sun, Oct 03, 2004 at 12:44:54PM -0700, Roop Nanuwa wrote:
> I'm trying to add GD support into my PHP5 install and I'm utterly
> confused by one thing. For some reason, GD has a dependency on X. Why
> is that? This is a server  that doesn't even have a monitor plugged
> in, what features of X does the PHP GD module require? It seems rather
> ridiculous to me that there would that requirement.
> 
> What's the reasoning behind it? What features of the X libraries does
> GD make use of?

xpm or "X PixMap" -- an image format provided with X windows.  You can
avoid having to install the whole X client libraries by installing
graphics/gd with the following flags:

    # cd /usr/ports/graphics/gd
    # make install WITH_XPM=yes WITHOUT_X11=yes

which will cause a standalone xpm library to be used.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041003/964ab467/attachment.bin


More information about the freebsd-questions mailing list