Click to See Complete Forum and Search --> : Configure 'with' PHP


zcurtis
08-28-2002, 02:10 PM
I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b, zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an error. Here is my configure command as well. I am using PHP 4.0.6.

./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-gd=/usr/local/src/gd-2.0.1 \
--with-png-dir=/usr/local/lib \
--with-zlib-dir=/usr/local/include \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/include/freetype2

"configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/include/freetype2".

I search for libgd.so which is located in /usr/lib. What am doing wrong? Am I pointing to the correct gd location and/or freetype location?

Regards,


Zach Curtis
POPULUS

largo
08-28-2002, 06:18 PM
did you run make on gd? is there a libgd.a file in your gd-source? (or are you building it as an .so... in which case it should be in your /usr/lib {or where ever you specify})

From my gd make file (1.8.4) -- the LIBS line reads:

LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm -lttf

run make and you should have a libgd.a in your src folder.

good luck.