Forum Moderators: bakedjake

Message Too Old, No Replies

PHP configure with jpeg problem

         

smagdy

8:54 am on May 1, 2006 (gmt 0)

10+ Year Member



Hello,

I successfully installed Apache 2.2, MySQL 5, GD 2 and PHP 5 on Red Hat 9.

Everything went find after that, but i started getting errors like:

Fatal error: Call to undefined function imagecreatefromjpeg()

Then i found that i forgot to configure PHP with JPEG, but then i did it 100 times and restarted apache but it just doesnt get to work!

in phpinfo(); i have this:

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

But there is no any jpeg support!

Here is my configure command:

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

What else can i do?

Thanks in advance

nazlfrag

3:04 pm on May 10, 2006 (gmt 0)

10+ Year Member



I'm sorry, I don't know enough about the specifics, but a simple image editor should be able to convert JPG to GIF, just try the GIMP for starters.

gruber

8:58 am on May 12, 2006 (gmt 0)

10+ Year Member



check if libjpeg installed on the system

rpm -qa ¦ grep libjpeg

smagdy

7:25 pm on May 12, 2006 (gmt 0)

10+ Year Member



Thanks, it was solved when i removed the unpacked folder of PHP and unpacked it again....