Forum Moderators: coopster

Message Too Old, No Replies

problem with configure

         

anthrt

1:42 am on Dec 19, 2005 (gmt 0)

10+ Year Member



i dont know if this is the right forum or not, but whatever.

ok, so i am installing php5.0.5 on a fedora core 4 server running apache 2.

im running this configure command:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-png --with-jpeg

and im getting this error:
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a¦so) not found.

in /usr/lib there is nothing directly named libpng.a or libpng.so, or libjpeg.a etc.

the relevant files there are libjpeg.so.62, libjpeg.so.62.0.0, libpng.so.3, libpng.so.3.1.2.8, libpng12.so.0 and libpng12.so.0.1.2.8

so im wondering, if i use --with-jpeg-dir, which file should i point it to specifically? i have tried to use /usr/lib for the dir on both --with-png and --with-jpeg, but i get a not found error for both.

thanks for any help.

dreamcatcher

2:33 am on Dec 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have the GD library enabled? Its bundled with PHP, but is not enabled by default.

dc

anthrt

3:33 am on Dec 19, 2005 (gmt 0)

10+ Year Member



to be honest im not entirely sure. however i downloaded the libraries manually and compiled them and now it works, to an extent.

i did var_dump(gd_info()); but in the output, it tells me that jpg support is DISABLED..

array(11) {
["GD Version"]=>
string(27) "bundled (2.0.28 compatible)"
["FreeType Support"]=>
bool(false)
["T1Lib Support"]=>
bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(true)
["JPG Support"]=>
bool(false)

["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XPM Support"]=>
bool(false)
["XBM Support"]=>
bool(true)
["JIS-mapped Japanese Font Support"]=>
bool(false)
}

i also tried recompiling php with --with-jpeg-dir=/usr/lib/ but apparently that didnt work.

the configure command i used looks like this:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-png --with-jpeg-dir=/usr/lib/ --with-zlib

dreamcatcher

1:38 pm on Dec 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To find out if GD support is enabled, type the following into a text editor:

<?php phpinfo();?>

save as a .php file, upload, then access in your browser. You should see GD support details.

If its not enabled, open your PHP.ini file and uncomment the following line:

extension=php_gd2.dll

Then reboot the server.

dc