Problem with graphics/php4-gd

Matthew Seaman m.seaman at
Mon Sep 20 03:23:29 PDT 2004

On Mon, Sep 20, 2004 at 01:52:38AM +0200, Nika Vidal wrote:

> I'm trying to install coppermine image gallery on my FreeBSD system,
> but it depends of graphics/php4-gd.
> php4-gd needs installing X11 but I don't want to install it, there is
> any way to install php4-gd without installing X11??

It's not graphics/php4-gd that depends on X11 itself, but the
graphics/gd port.

You can certainly install graphics/gd without having to install the
X11 client libraries -- you can even install it with Xpm support and
without the rest of X11.

Install graphics/gd like so:

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

or, if you're a portupgrade user, add the following to the MAKE_ARGS
array in /usr/local/etc/pkgtools.conf:

    'graphics/gd'  =>  [ 'WITH_XPM=yes', 'WITHOUT_X11=yes', ],

Whichever way you choose, then go on to install graphics/php4-gd as

Actually 'WITHOUT_X11' is used by many ports that have optional X11
support, so for an X-less machine, putting WITHOUT_X11=yes into
/etc/make.conf is a pretty good idea.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         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 :

More information about the freebsd-ports mailing list