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/
Upgrading the GD library
Moderator: General Moderators
Upgrading the GD library
Last edited by romeo on Thu Sep 16, 2004 2:15 pm, edited 1 time in total.
PHP mostly
I have tried most RPMs... one says it needs another so i get it then go all over again in a loop
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-11If 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.
$ 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.
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.