Forum Moderators: coopster
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.
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
<?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