Subscribe
'./configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-gettext=/usr/local/lib' '--with-png-dir=/usr/local/lib' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-zlib-dir=/usr/local/zlib-1.2.3'
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
Fatal error: Call to undefined function imagecreatefromjpeg() If phpinfo() shows GD, but not JPEG support, then that's the problem. You would think that --with-gd would do the right thing since it does check for the existance of libjpeg (and finds it) and add that feature to GD, but it doesn't in v4.4.4 at least on RHEL v2.1, RHEL v3, CentOS v2.1 or CentOS v4.3.
On those platforms, it's *important* that --with-jpeg-dir be *before* --with-gd. If it's not, GD won't build with jpeg support as if --with-jpeg-dir had never been specified...You are not logged in, either login or create an account to post comments
Define "fails." The function name isn't capitalized; it's a lowercase imagecreatefromjpeg(). So if you're using a capitalized name and getting a "function does not exist" error, that's probably your problem. But if you're using the lowercase name, what exact error are you getting?
posted by scottreynen at 8:05 AM on March 1, 2007