note 74891 added to function.imagecreatefromjpeg

From: Date: Wed, 02 May 2007 16:10:17 +0000
Subject: note 74891 added to function.imagecreatefromjpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-126124@lists.php.net to get a copy of this message
I've found a bug in CentOS 4.x that, while previously addressed, does not seem to be directly addressed here as far as the nature of the bug is concerned. If you are having a problem getting this function to work on CentOS 4.4 (may appear earlier) and are receiving this error: Call to undefined function imagecreatefromjpeg() This is because the installation *does* support JPG by default if you have libjpeg installed. However, the config script finds libjpeg in /usr/lib but it is never successfully added to the PHP build. To fix this, you should recompile PHP and be absolutely sure to add '--with-jpeg-dir' to the config command. This should appear BEFORE the --with-gd option. Example: '--with-jpeg-dir' '--with-gd' If you don't put it before --with-gd, the option is completely ignored. As always, be sure to do a 'make clean' before a 'make install'. I made the mistake of forgetting to check and wasted 30 minutes trying to resolve this problem simply because I forgot to clean up after myself previously. ---- Server IP: 69.39.81.135 Probable Submitter: 24.175.242.226 ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php Edit -- https://master.php.net/note/edit/74891 Del: integrated -- https://master.php.net/note/delete/74891/integrated Del: useless -- https://master.php.net/note/delete/74891/useless Del: bad code -- https://master.php.net/note/delete/74891/bad+code Del: spam -- https://master.php.net/note/delete/74891/spam Del: non-english -- https://master.php.net/note/delete/74891/non-english Del: in docs -- https://master.php.net/note/delete/74891/in+docs Del: other reasons-- https://master.php.net/note/delete/74891 Reject -- https://master.php.net/note/reject/74891 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126124) next »