I'm attemping to compile mapserver on our web hosting server, which are cool enough to allow this. But I'm having some problems.<br><br>First off, it says it can't find gd.h. I've included the compilation command used and output at the end. I've checked and gd does exist in /usr/lib and /usr/include, and pointed to /usr to no avail. I also tried compiling gd myself. Gd was compiled successfully, but mapserver can't see it.
<br><br>I then called a friend who's with the same hosting company and managed to compile mapserver successfully. He told me he didn't have any issues as it was on a older, 32 bit machine, and the server I'm on is 64bit. Is this the issue? Or am I just doing something stupid.
<br><br>I'm very grateful for any advice.<br><br>Cheers,<br>Xin<br><br>configure: WARNING: you should use --build, --host, --target<br>checking for 2-gcc... no<br>checking for gcc... gcc<br>checking for C compiler default output file name...
a.out<br>checking whether the C compiler works... yes<br>checking whether we are cross compiling... no<br>checking for suffix of executables... <br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes
<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ANSI C... none needed<br>checking for 2-g++... no<br>checking for 2-c++... no<br>checking for 2-gpp... no<br>checking for 2-aCC... no<br>checking for 2-CC... no
<br>checking for 2-cxx... no<br>checking for 2-cc++... no<br>checking for 2-cl... no<br>checking for 2-FCC... no<br>checking for 2-KCC... no<br>checking for 2-RCC... no<br>checking for 2-xlC_r... no<br>checking for 2-xlC... no
<br>checking for g++... g++<br>checking whether we are using the GNU C++ compiler... yes<br>checking whether g++ accepts -g... yes<br>checking for 2-ranlib... no<br>checking for ranlib... ranlib<br>checking for flex... flex
<br>checking for yywrap in -lfl... yes<br>checking lex output file root... lex.yy<br>checking whether yytext is a pointer... yes<br>checking for bison... bison -y<br>checking if compiler supports -R... no<br>checking if compiler supports -Wl,-rpath,... yes
<br>checking for exp in -lm... yes<br>checking for __gxx_personality_v0 in -lstdc++... yes<br>checking how to run the C preprocessor... gcc -E<br>checking for egrep... grep -E<br>checking for ANSI C header files... yes<br>
checking for strcasecmp... yes<br>checking for strncasecmp... yes<br>checking for strdup... yes<br>checking for strlcat... no<br>MapServer Version from map.h: '4.6.1'<br>configure: checking where FreeType 2.x is installed...
<br> using libfreetype from -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz<br>checking for FT_Init_FreeType in -lfreetype... yes<br> using libfreetype -lfreetype from system libs.<br>configure: checking where Zlib is installed...
<br> using runtime libz from -L/lib64 -lz<br>configure: checking where PNG is installed...<br> using libpng from -L/lib64 -lpng<br>configure: checking whether we should include JPEG support...<br>checking for jpeg_read_header in -ljpeg... yes
<br> using libjpeg from system libs.<br>configure: checking where libXpm is installed...<br>checking for XpmFreeXpmImage in -lXpm... no<br> XPM (libXpm) library cannot be found, possibly needed for GD<br>configure: checking where libiconv is installed...
<br>checking for iconv_open in -lc... yes<br>checking for libiconv_open in -liconv... no<br> using libiconv from system libs.<br> libiconv found. Enabling internationalization (-DUSE_ICONV)<br>configure: checking for GD
2.0.16 or higher...<br>checking for gdFontCacheSetup in -lgd... no<br>configure: checking whether GD needs libiconv...<br>checking for gdFontCacheSetup in -lgd... no<br>configure: error: Could not find gd.h or libgd.a/libgd.so in /usr. 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).<br><br>---<br><br>[~/dev/mapserver-
4.6.1]# whereis gd<br>gd: /usr/include/gd.h<br><br>[~/dev/mapserver-4.6.1]# ls /usr/include/gd.*<br>/usr/include/gd.h<br><br>