Re: Problem with install lybrary GD

From: Date: Fri, 26 Sep 2008 17:27:48 +0000
Subject: Re: Problem with install lybrary GD
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281000@lists.php.net to get a copy of this message
Hi forum I try install library GD on Centos 5 I download the gd-2.0.35.tar with the next sentece ./configure --prefix=/usr/local --with=/usr/local --with-jpeg=/usr/local make make install Here all ok. And next install the php-5.2.6 ./configure (... n parameter...) --with-gd=/usr/local/lib --with-png-dir=/usr/local/bin --with-jpeg-dir=/usr/local/bin make make install And don't get any problem, all ok. But, execute in code php, the command phpinfo(); and see the next result Configure Command './configure' ....... '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-png' '--without-gd' .......... And test with code in php var_dump(gd_info()); but nothing. What is wrong. Why don't work Thanks, P.D. The content the directory are: /usr/local/bin annotate bdftogd gd2copypal gd2togif gd2topng gdcmpgif gdlib-config gdparttopng gdtopng giftogd2 pngtogd pngtogd2 wcmgr webalizer webazolver webpng /usr/local/lib gd.h libgd.a libgd.la libgd.so libgd.so.2 libgd.so.2.0.0 libpcap.a In cae you are using a prepackaged php you can always do:
yum install php-gd it will installed everything is need to do this. In case you have compliled php you need to recompile it with the current version of gd that you just have installed. In case the current php used to be compiled with a version of gd that you replaced (meaning installed in the exact same location) I think it might work by I wouldn't count on this. -- Thodoris

« previous php.general (#281000) next »