PHP running on your server does not support the GD image library, PHP running on your server does not support the GD image library,
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

PHP running on your server does not support the GD image library,

Started by nlnlnl, September 20, 2006, 04:28:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nlnlnl

PHP running on your server does not support the GD image library,

I get that error message when trying to batch upload.

But PHP was configured with GD - the following is from my phpinfo :

'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr/include'

gd
GD Support    enabled
GD Version    bundled (2.0.28 compatible)
GIF Read Support    enabled
GIF Create Support    enabled
PNG Support    enabled
WBMP Support    enabled
XBM Support    enabled


Any ideas, or what other information do I need to get to figure out what's wrong here?

TIA,

Neil

Sami

‍I don't answer to PM with support question
Please post your issue to related board

nlnlnl

Sorry. . . 

I have set the settings deswcribed, but this is not web-facing so am unable to post a link, but the only extra info displayed with debug on, just after the 'php running on your server...' msg, is just the script name a and line number    File: /usr/local/apache2/htdocs/coppermine/include/picmgmt.inc.php - Line: 254

thanks.

nlnlnl

"Do not post debug_output unless requested."

So. . . . should I post this?

kegobeer

It doesn't look like JPEG support was enabled when PHP and GD were compiled.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

nlnlnl

Ok, so I've re-configured php with jpeg   (--with-jpeg), but phpinfo still doesn't show jpeg support, and uploading a file produces the same error msg.. Am I right in thinking I need to see jpeg support in the GD section of phpinfo?
I also tried configuring with  --with-jpeg  --with-jpeg-dir=/usr/lib   (this is where I find the libjpeg.so.62 and libjpeg.so.62.0.0 files) This configure fails with  libjpeg. (a|so) not found.
I've read a post saying I also need libjpeg-devel  -  but cannot find a downloadable version anywhere, and another post saying it is already included in libjpeg.

Any help much appreciated.

nlnlnl

I've resolved this.

Found a post saying that after installing libjpeg, it is necessary to do   make install-lib, &  make instal-headers

Then I just included  --with-jpeg-dir=/usr/local in the php configure command.  Sorted.

Thanks for replies.