[mapserver-users] Problem with configure

Alan Hale alan.hale at btclick.com
Tue Oct 13 04:03:56 EDT 2009


Hi

Running on CentOS5 I am getting an error with configure relating to gd. 
Here is the last part of the output:


MapServer Version from mapserver.h: '5.4.2'
checking if pkg-config path is provided... checking for pkg-config... 
/usr/bin/pkg-config
configure: checking where FreeType 2.x is installed...
        using libfreetype from -L/usr/local/lib/ -lfreetype
./configure: line 5261: test: too many arguments
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
        using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
        using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
        XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
        using libiconv from system libs.
        libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib/.  
Make sure GD 2.0.16 or higher is compiled before calling configure. You 
may also get this error if you didn't specify the appropriate location 
for one of GD's dependencies (freetype, libpng, libjpeg or libiconv).
#########################################################################
And this is my configure line:

./configure --with-ogr=/usr/local/bin/gdal-config 
--with-ogr=/usr/local//bin/gdal-config --with-httpd=/usr/sbin/httpd 
--with-wfsclient --with-wmsclient --enable-debug 
--with-curl-config=/usr/local/bin/curl-config --with-proj=/usr/local 
--with-tiff --with-gd=/usr/lib/ --with-jpeg 
--with-freetype=/usr/local/lib/ --with-threads --with-php
################################################

libgd.so is definitely under /usr/lib/ and the script seems to have 
found all the other dependencies listed for GD. Can anyone please advise?
Many thanks

Alan Hale



__________ Information from ESET Smart Security, version of virus signature database 4501 (20091012) __________

The message was checked by ESET Smart Security.

http://www.eset.com




More information about the mapserver-users mailing list