Compiling mapserver fails on Solaris

Øyvind Eide oyvind.eide at MUSPRO.UIO.NO
Wed Mar 1 08:57:50 EST 2006


We are installing Mapserver to test it as a tool for serving web maps,
but have trouble running the configure command.  We are using
Mapserver 4.8.1 on Solaris 8. Any help or suggestions would be helpful!

Here is the relevant output with the error message (we try a barebone
installation without links to database, webserver etc. first to try to
isolate the problem):

hedvig ~/utv/mapserver/mapserver-4.8.1 71> ./configure --with-gd=/local --with-freetype=/local --with-libiconv=/local --with-jpeg=/local --with-png=/local --with-zlib=/local --with-xpm=/local/X11R6
checking for gcc... no
checking for cc... cc
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... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking for ranlib... :
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... 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... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... no
checking how to run the C preprocessor... cc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strlcat... yes
checking for vsnprintf... yes
MapServer Version from map.h: '4.8.1'
configure: checking where FreeType 2.x is installed...
        using libfreetype from -L/local/lib -R/local/lib -lfreetype -lz
checking for FT_Init_FreeType in -lfreetype... no
        using libfreetype -L/local/lib -R/local/lib -lfreetype -lz from system libs.
configure: checking where Zlib is installed...
        using libz from -L/local/lib -lz (-DUSE_ZLIB)
configure: checking where PNG is installed...
        using libpng from -L/local/lib -lpng
configure: checking whether we should include JPEG support...
        using libjpeg from system -L/local/lib -ljpeg
configure: checking where libXpm is installed...
        using libXpm from -L/local/X11R6/lib -lXpm -lX11
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
        using libiconv from -L/local/lib -lc
        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 /local.  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).
hedvig ~/utv/mapserver/mapserver-4.8.1 72> 

As far as I can see, I have all the necessary libraries as documented
in http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix.

As seen above, configure fails before the "using GD" output is
reached.

The gd files are where they should be:

hedvig /local/lib 248> ls /local/include/gd*
/local/include/gd.h
/local/include/gd_io.h
/local/include/gdbm.h
...
hedvig /local/lib 249> ls /local/lib/libgd*
/local/lib/libgd.a
/local/lib/libgd.la
/local/lib/libgd.so
/local/lib/libgd.so.2
/local/lib/libgd.so.2.0.0
/local/lib/libgdbm.a
...


Kind regards,

Øyvind Eide



More information about the mapserver-users mailing list