Upgrading the GD library

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
romeo
Forum Contributor
Posts: 138
Joined: Sun Apr 21, 2002 12:50 pm

Upgrading the GD library

Post by romeo »

I want to upgrade to the latest version of the GD library...
I am running redhat 9 and can't find any RPMs.

Anyone wanna give me a quick HOWTO with the defualt download from the GD website ?http://www.boutell.com/gd/
Last edited by romeo on Thu Sep 16, 2004 2:15 pm, edited 1 time in total.
romeo
Forum Contributor
Posts: 138
Joined: Sun Apr 21, 2002 12:50 pm

Post by romeo »

will pay $ for detailed instructions
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Are you wanting to upgrade your systems GD library? or is this purely for use with PHP?
romeo
Forum Contributor
Posts: 138
Joined: Sun Apr 21, 2002 12:50 pm

Post by romeo »

PHP mostly
I have tried most RPMs... one says it needs another so i get it then go all over again in a loop


Code: Select all

їroot@srv gd]# rpm -iUvh gd-1.8.3-7.i386.rpm
error: Failed dependencies:
        gd = 1.8.4 is needed by (installed) gd-progs-1.8.4-11
        gd = 1.8.4 is needed by (installed) gd-devel-1.8.4-11
їroot@srv gd]# rpm -iUvh gd-1.8.4-11.i386.rpm 
Preparing...                ########################################### ї100%]
        package gd-1.8.4-11 is already installed
їroot@srv gd]# rpm -iUvh gd-2.0.28-0_9.rh9.at.i386.rpm
warning: gd-2.0.28-0_9.rh9.at.i386.rpm: V3 DSA signature: NOKEY, key ID 66534c2b
error: Failed dependencies:
        libgd.so.1.8 is needed by (installed) webalizer-2.01_10-11
        libgd.so.1.8 is needed by (installed) php-4.2.2-17.2
        gd = 1.8.4 is needed by (installed) gd-progs-1.8.4-11
        gd = 1.8.4 is needed by (installed) gd-devel-1.8.4-11
їroot@srv gd]# rpm -iUvh gd-1.8.3-7.i386.rpm
error: Failed dependencies:
        gd = 1.8.4 is needed by (installed) gd-progs-1.8.4-11
        gd = 1.8.4 is needed by (installed) gd-devel-1.8.4-11
їroot@srv gd]# rpm -iUvh gd-1.8.4-11.i386.rpm 
Preparing...                ########################################### ї100%]
        package gd-1.8.4-11 is already installed
їroot@srv gd]# rpm -iUvh gd-2.0.28-0_9.rh9.at.i386.rpm
warning: gd-2.0.28-0_9.rh9.at.i386.rpm: V3 DSA signature: NOKEY, key ID 66534c2b
error: Failed dependencies:
        libgd.so.1.8 is needed by (installed) webalizer-2.01_10-11
        libgd.so.1.8 is needed by (installed) php-4.2.2-17.2
        gd = 1.8.4 is needed by (installed) gd-progs-1.8.4-11
        gd = 1.8.4 is needed by (installed) gd-devel-1.8.4-11
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

If it is purely for PHP then it is recommended that you use the GD bundled with the PHP source and not use your systems GD libraries. If you want to upgrade your GD version for PHP it is far easier to rebuild a newer version of PHP than to patch a newer version of GD into it. The main reason for this is that the php-gd maintainers have done some work to the GD code.
romeo
Forum Contributor
Posts: 138
Joined: Sun Apr 21, 2002 12:50 pm

Post by romeo »

is there an rpm i dl?
im running rh 9
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

I don't think there is an official Redhat9 rpm for PHP4.3.X although I could be wrong. There are a few kicking around on the net (probably worth googling for).

Unfortunately that's as accurate an answer I can give you, I normally just compile what I need from source.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

$ rpm -qa | grep php | xargs rpm -e

then move into /usr/src, download the tar.gz from php.net, extract it with tar -zxvf filename.tar.gz and then install with:

root@machine$ ./configure --with-mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--enable-exif \
--with-gd=../gd-1.8.4 \
--with-jpeg-dir=../jpeg-6b/ \
--with-png-dir=../libpng-1.2.5 \
--with-zlib-dir=../zlib-1.1.4 \
--with-pdflib=/usr/local/ \
--with-tiff-dir=/usr/local/ \
--with-mail \
--enable-bcmath \
--with-dom \
--with-mcrypt=/usr/local/ \
--with-gettext \
--with-xml

root@machine$ make && make install


well that's what my build looks like - add/remove any options you fancy.
Post Reply