Just out of curiosity, change /usr/local/lib/gd to /usr/local, you don't have to specify the lib path, like if you do --with-mysql=/usr/local/mysql it will know the libs are in the path you specified with lib at the end, which would be /usr/local/mysql/lib, so give just /usr/local a try.
Adam Voigt [EMAIL PROTECTED] On Mon, 22 Apr 2002 14:33:54 -0700, Jonathan Hilgeman <[EMAIL PROTECTED]> wrote: > Why don't you just use the ports system on FreeBSD to set up PHP? It would > be much cleaner and a lot faster. > > To address your problem, it seems as though it can't find your gd.h file in > the include paths. What happens when you run "locate gd.h" ? > > - Jonathan > > -----Original Message----- > From: Batch [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 2:01 PM > To: [EMAIL PROTECTED] > Subject: [PHP-INST] Re: FreeBSD + gd + PHP4.1.2 > > > Anyone know what this problem is? I am getting the exact same problem under > RedHat 7.2 > > Thanks. > > "Kasper" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have some problems with GD and php4.1.2. > > > > I have FreeBSD and i have gd zlib freetype jpeg and all that is required > > installed. > > > > My line is like this, > > > > > /configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd-dir > > > =/usr/local/lib/gd --with-zlib --with-png-dir=/usr/local/lib --with-jpeg-dir > > =/usr/local/lib --with-freetype-dir=/usr/local/lib > > > > I have also tried > > > > > /configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd --w > > ith-zlib --with-png --with-jpeg > > > > --with-freetype > > > > And the error i get is this one, > > > > In file included from internal_functions.c:33: > > > > /home/miffo/php/ext/gd/php_gd.h:33: gd.h: No such file or directory > > > > *** Error code 1 > > > > Stop in /home/miffo/php/main. > > > > *** Error code 1 > > > > Stop in /home/miffo/php/main. > > > > *** Error code 1 > > > > Stop in /home/miffo/php. > > > > And when configuring php says, > > > > checking whether to include GD support... yes > > > > checking whether to enable truetype string function in gd... no > > > > checking for the location of libjpeg... yes > > > > checking for jpeg_read_header in -ljpeg... (cached) yes > > > > checking for the location of libpng... yes > > > > checking for png_info_init in -lpng... (cached) yes > > > > checking for the location of libXpm... no > > > > If configure fails try --with-xpm-dir=<DIR> > > > > checking for freetype(2)... yes > > > > checking whether to include include FreeType 1.x support... no > > > > checking whether to include T1lib support... no > > > > checking for gdImageString16 in -lgd... (cached) yes > > > > checking for gdImagePaletteCopy in -lgd... (cached) yes > > > > checking for gdImageCreateFromPng in -lgd... (cached) yes > > > > checking for gdImageCreateFromGif in -lgd... (cached) yes > > > > checking for gdImageGif in -lgd... (cached) no > > > > checking for gdImageWBMP in -lgd... (cached) yes > > > > checking for gdImageCreateFromJpeg in -lgd... (cached) yes > > > > checking for gdImageCreateFromXpm in -lgd... (cached) yes > > > > checking for gdImageCreateFromGd2 in -lgd... (cached) yes > > > > checking for gdImageCreateTrueColor in -lgd... (cached) no > > > > checking for gdImageSetTile in -lgd... (cached) yes > > > > checking for gdImageSetBrush in -lgd... (cached) yes > > > > checking for gdImageStringTTF in -lgd... (cached) yes > > > > checking for gdImageStringFT in -lgd... (cached) yes > > > > checking for gdImageStringFTEx in -lgd... (cached) no > > > > checking for gdImageColorClosestHWB in -lgd... (cached) yes > > > > checking for gdImageColorResolve in -lgd... (cached) yes > > > > checking for gdImageGifCtx in -lgd... (cached) no > > > > > > > > Whats wrong ?? > > > > /K > > > > > > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php