Hi,
I just compiled PHP with GD, here is my command:
./configure --with-gd --with-mysql --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib
make
make install
It installed with no problem. I typed php -m to verify if gd is compiled, yes, it's there. However, when I use phpinfo() to show the details, gd is not there, it's not listed at all. All other modules like pgsql, mysql, odbc, zlib, etc. are listed, but just not the gd.
I even added a line extension=libgd.so at where it says Dynamic Extensions(Not sure if that's required) and restart the Apache. Unfortunetely, it didn't help. gd still doesn't not show in phpinfo().
Then I checked my Apache error log, and I found that it says:
"PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libgd.so' in Unknown on line 0"
I'm pretty new to Linux, so I tried libgd.so.2, libgd.so.2.0.0 , and they don't work either.
Can you guys please help me. Any information is greatly appreciated!