MapServer 4.10.2 Configure error

Amy Ramsdell aramsdell at SPINSYS.COM
Wed May 30 11:08:09 EDT 2007


I am trying to configure MapServer 4.10.2 on a Linux RHEL4U2 machine with 
the following commands.  The script fails when it is looking for the gd files.  
Could not find gd.h or libgd.a/libgd.so in /usr/lib64. 

 I know these files are in that directory because I put them there. I also tried 
in usr/lib as well before /usr/lib64.  gd is already in the system because when I 
type rpm -query gd, I get gd-2.0.28-4

Any ideas? I'm all out.

Thanks,
Amy

 ./configure \
--with-wfs \
--with-wfsclient \
--with-wmsclient \
--with-proj=/usr/share/proj \
--with-gd=/usr/lib64 \
--with-libiconv=/opt \
--with-gdal=/opt/gdal-1.4.1 \
--with-ogr=/opt/gdal-1.4.1 \
--with-php=/usr/bin \
--with-httpd=/usr/sbin/ \
--with-jpeg=/usr \
--with-png=/usr \
--with-freetype=/usr \
--with-xpm=/usr/X11R6/lib64 \
--with-sde=/opt/arcgis/sdeexe91/lib \
--with-sde-version=91 \
--enable-debug \
--with-curl-config=/usr/bin/curl-config \
--with-threads \
--with-wcs \
--with-sos \
--with-xml2-config=/lib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from map.h: '4.10.2'
configure: checking where FreeType 2.x is installed...
        using libfreetype from -L/usr/lib -lfreetype
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...
        using libpng from -L/usr/lib -lpng
configure: checking whether we should include JPEG support...
        using libjpeg from system -L/usr/lib -ljpeg
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... yes
        using libiconv from -L/opt/lib -liconv
        libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... no
configure: checking whether GD needs libiconv...
checking for gdFontCacheSetup in -lgd... no
configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib64.  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).
[root at cohort40 mapserver-4.10.2]# vi configure.in
[root at cohort40 mapserver-4.10.2]# ./configure \
> --with-wfs \
> --with-wfsclient \
> --with-wmsclient \
> --with-proj=/usr/share/proj \
> --with-gd=/usr/lib64 \
> --with-libiconv=/opt \
> --with-gdal=/opt/gdal-1.4.1 \
> --with-ogr=/opt/gdal-1.4.1 \
> --with-php=/usr/bin \
> --with-httpd=/usr/sbin/ \
> --with-jpeg=/usr \
> --with-png=/usr \
> --with-freetype=/usr \
> --with-xpm=/usr/X11R6/lib64 \
> --with-sde=/opt/arcgis/sdeexe91/lib \
> --with-sde-version=91 \
> --enable-debug \
> --with-curl-config=/usr/bin/curl-config \
> --with-threads \
> --with-wcs \
> --with-sos \
> --with-xml2-config=/lib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from map.h: '4.10.2'
configure: checking where FreeType 2.x is installed...
        using libfreetype from -L/usr/lib -lfreetype
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...
        using libpng from -L/usr/lib -lpng
configure: checking whether we should include JPEG support...
        using libjpeg from system -L/usr/lib -ljpeg
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... yes
        using libiconv from -L/opt/lib -liconv
        libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... no
configure: checking whether GD needs libiconv...
checking for gdFontCacheSetup in -lgd... no
configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/lib64.  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).



More information about the mapserver-users mailing list