[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RAQ4] PHP Error - Urgent please!



I got curious.. :)

> GD is the graphics C library written by Tom Boutell (
<snip>
> the gd supports JPEG, PNG and WBMP.

yes but it's not libjpeg.

> Now your error comes up because you:
> 1. haven't compiled PHP to support any version of the GD

On the Raq4 php is preinstalled and is compiled with gd-1.3-5  support and
it is compiled into php already.... If you want the current version of gd
you need libjpeg-devel anyway.... and you might want to rebuild the
smartupstools too...

> How do you solve it ????
> You have two solutions :
>
> 1. Recompile PHP and use this as minimum configure string
>     ./configure --with-gd

Above is an example of what NOT to do to your cobalt.

What you should do is...
(This has been done by me on a Raq4r)
goto ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/i386/SRPMS/
and get the current libjpeg srpm and build and install the rpms it makes...
Then get the php srpm form http://ftp.cobaltnet.com/products/raq4/SRPMS/
(for the default config it's
http://ftp.cobaltnet.com/products/raq4/SRPMS/php-4.0.3pl1-C1r4.src.rpm )
Edit the spec file to include --with-jpeg in the options and build it and
install it.

> 2. Consider if you really have the knowledge to administer a Linux box,
even
> if the cobalt's are easy to use, you still need some basic Linux skills.

maybe this should be updated to "Redhat Linux"

> le 23.9.2001 16:54, Admin <snip> Public Relations (e-snip)

:) ok....  so anyway the problem was

> > I want to run a .php script on my raq4 sever but i get an error message
> > ImageCreateFromJpeg: No JPEG support in this PHP build in

The default Raq4 has no libjpeg installed and compiled into php...
You need to install it as above.

Zeffie
http://www.zeffie.com/
"We don't need no stinkin gd!"