Installing GDInternet · Linux
You might have noticed that the server has been abit up and down of late, well thats because I have been upgrading Apache and PHP to the latest versions. At the same time I thought I would take advantage and upgrade GDlib to the latest version.
And what a little nightmare that is, but I finally managed it. I –prefix everything to /usr and used this as my configuration:
./configure --prefix=/usr --with-png=/usr --with-freetype=/usr/lib --with-jpeg=/usr/lib --with-xpm=/usr
Then when I was configuring php, I used the following:
./configure --with-mysql=/usr --with-apxs=/www/bin/apxs --with-imap=/usr/local/imap-2002e --with-xml --with-gd --with-jpeg-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr
If you get stuck then this ONLamp tutorial might help you: http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.htmlcomments powered by Disqus