RE: [PHP] imagecreatefromjpeg: "No JPEG support in this php build"

From: Date: Mon, 20 Nov 2000 01:07:04 +0000
Subject: RE: [PHP] imagecreatefromjpeg: "No JPEG support in this php build"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26165@lists.php.net to get a copy of this message
On Sun, 19 Nov 2000, Marc Swanson wrote: > > The --with-jpeg-dir parameter is used by several apps. Each one mentions > > it, which is possibly a point of confusion. In any case, the > > user-contributed comments are quite often correct. So yes, you need the > > --with-jpeg-dir parameter. > > Well, I finally got everything to compile ok with what APPEAR to be the > correct "--with" pareamters: (--with-gd=/usr/local --with-jpeg-dir=/usr) > > Two interesting thing of note: > > 1) When I tried to specify the location of the gd library (which is in > /usr/local/lib), you MUST leave OFF the "lib" part of the directory tree or > it won't find the library??!! (eg --with-gd=/usr/local/lib WON'T work > but --with-gd=/usr/local WILL.... <shrug>). This is standard behavior for most of the config parameters. The lib/ and include/ directories are assumed. What --with-gd specifies is the base, or prefix directory to look in. > 2) As far as I can tell, the jpeg library I'm after is "libjpeg" which is > located in /usr/lib/libjpeg.so.62.... HOWEVER, when I tried configuring > apache it kept saying it couldn't find libjpeg... so I took a wild guess and > put in a symbolic link to /usr/lib/libjpeg.so to /usr/lib/libjpeg.so.62 and > sure enough the darn thing configured/compiled.. BUT, my imagecreatefromjpeg > function STILL doesn't work GHAAAA!!!! Getting frustrated here... what am I > doing wrong?? That symlink is provided by the libjpeg-devel package, which I would've assumed you already had installed since you mentioned that it did build successfully. However, just to be safe, try rpm -q libjpeg-devel. Matt

« previous php.general (#26165) next »