GD Library

Matthew Seaman m.seaman at
Tue May 6 12:02:05 BST 2003

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 06, 2003 at 11:27:47AM +0100, Abdul Salam wrote:

> Thank you for that. But, I am still having trouble linking my PHP to the
> latest version of GD. By pkg_info command I am getting as the
> installed version of gd. But, in PHP I am getting version 1.6.2. It
> sounds like PHP is not linking with the latest version of the GD on the
> server. I have re-compiled with "--without-gd --with-gd=3D/usr/local"
> option to avoid taking the default library. But, it is failing to
> compile. Looks like my Makefile is looking in a wrong location for
> libraries. I am not sure whether it is a good idea to change it manually
> in Makefile. One more thing I have noticed is my is linked to
> rather than Manually re-linking of this to
> will do the trick..?. Or this needs to be done in some other
> way?

Yes --- if is sym-linked to then you'll end up
building PHP against GD 1.x.  You should make the link point at to achieve what you want:

    # cd /usr/local/lib
    # rm
    # ln -s

Then rebuild, reinstall PHP and restart apache as before.

Another handy command is 'ldd' which will tell you exactly what shlibs
your PHP module is linking against:

    % cd /usr/local/libexec/apache
    % ldd ./
   =3D> /usr/local/lib/mysql/libmysqlclient.s=
o.10 (0x28245000)
   =3D> /usr/local/lib/ (0x2827b000)
   =3D> /usr/local/lib/ (0x282c90=
   =3D> /usr/local/lib/ (0x2831a000)
   =3D> /usr/lib/ (0x2833d000)
   =3D> /usr/local/lib/ (0x2834b000)
   =3D> /usr/lib/ (0x28369000)
   =3D> /usr/lib/ (0x28379000)
   =3D> /usr/lib/ (0x28392000)
   =3D> /usr/lib/ (0x28069000)
   =3D> /usr/X11R6/lib/ (0x283ae000)
   =3D> /usr/X11R6/lib/ (0x283bc000)
   =3D> /usr/X11R6/lib/ (0x2847a000)
   =3D> /usr/X11R6/lib/ (0x284880=



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.1 (FreeBSD)



More information about the Ukfreebsd mailing list