Re: Problem with install lybrary GD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux