#44778 [Opn->Bgs]: libjpeg not found (easily)with --with-gd
ID: 44778
Updated by: jani@php.net
Reported By: mike at clove dot com
-Status: Open
+Status: Bogus
-Bug Type: PHP options/info functions
+Bug Type: GD related
Operating System: Mac OS X 10.4.11
PHP Version: 5.2.5
New Comment:
This is why there are the configure options available for people to
provide exotic locations for the libraries. And no, /opt is not any
"standard" location for anything.
Previous Comments:
------------------------------------------------------------------------
[2008-04-18 16:52:54] mike at clove dot com
Description:
------------
ext/gd/config.m4 contains code which looks for libjpeg.a and
libjpeg.<dynamic suffix> in $PHP_JPEG_DIR/$PHP_LIBDIR,
/usr/local/$PHP_LIBDIR and /usr/$PHP_LIBDIR. This fails to find
libjpeg.<whatever> when libjpeg is loaded onto a mac using macports
because it lives in /opt/local/lib.
Suggest adding, after line 75:
SUP_DIR=dirname $PHP_JPEG_DIR
and modifying line 76 to read:
for i in $PHP_JPEG_DIR $SUP_DIR /usr/local /usr; do
Same holds for the libpng search and probably other things.
Actually, it would be nice if the script searched /usr/local and /usr
libraries if --with-gd were set, rather than having to know that you
have to set --with-jpeg-dir=...
If there is interest, I can hack the file
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44778&edit=1
Thread (4 messages)