Hi,
I have spend hours if not days, but could not figure out why PHP won't compile with GD support on FreeBSD 4.2.
I installed gd.1.8.3 through the FreeBSD port, which will automatically install the required jpeg, png, freetype etc. for me. It all seems to be there too, in /usr/local/lib.
However, when I install PHP 4.0.4pl1 like this:
./configure
--with-mysql
--enable-safe-mode
--with-config-file-path=/etc/apache
--with-apache=../apache_1.3.19
--enable-ftp
--with-gd=shared
--with-ttf
gmake
I get..
php_gd.h:33: gd.h: No such file or directory
gd.c:54: gd.h: No such file or directory
gd.c:55: gdfontt.h: No such file or directory
gd.c:56: gdfonts.h: No such file or directory
gd.c:57: gdfontmb.h: No such file or directory
gd.c:58: gdfontl.h: No such file or directory
gd.c:59: gdfontg.h: No such file or directory
gmake[3]: [gd.slo] Error 1
gmake[3]: Leaving directory /usr/src/php-4.0.4pl1/ext/gd'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory/usr/src/php-4.0.4pl1/ext/gd'
gmake[1]: [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/php-4.0.4pl1/ext'
gmake: *** [all-recursive] Error 1
I tried with
--with-gd, --with-gd=/usr, --with-gd=/usr/local, --with-gd=/usr/local/lib, --with-gd=shared/usr/local/lib etc. etc.
- if I leave "shared" out, it won't even configure, but tell me it could not find the libs, although they are definitly in /usr/local/lib.
I am desperate!!! What's the trick? Work-around? Something please.
DrTebi