Page 1 of 1

Upgrading the GD library

Posted: Thu Sep 16, 2004 11:15 am
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/

Posted: Thu Sep 16, 2004 2:00 pm
by romeo
will pay $ for detailed instructions

Posted: Thu Sep 16, 2004 2:11 pm
by redmonkey
Are you wanting to upgrade your systems GD library? or is this purely for use with PHP?

Posted: Thu Sep 16, 2004 2:15 pm
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

Posted: Thu Sep 16, 2004 2:21 pm
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.

Posted: Thu Sep 16, 2004 2:28 pm
by romeo
is there an rpm i dl?
im running rh 9

Posted: Thu Sep 16, 2004 2:36 pm
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.

Posted: Thu Sep 16, 2004 3:49 pm
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.