Hi again,<br><br>I'm still having difficulties with this.&nbsp; I don't believe the problem lies with the server being 64bit as I've read other people compile successfully on them.<br><br>I've searched the archives and there seems to be a few posts concerning this can't find 
gd.h problem, but no fixes.<br><br>Any advice is welcome.<br><br>Cheers,<br>Xin<br><br><div><span class="gmail_quote">On 02/12/05, <b class="gmail_sendername">Xin</b> &lt;<a href="mailto:crazygecko@gmail.com">crazygecko@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm attemping to compile mapserver on our web hosting server, which are cool enough to allow this.&nbsp; But I'm having some problems.
<br><br>First off, it says it can't find gd.h.&nbsp; I've included the compilation command used and output at the end.&nbsp; I've checked and gd does exist in /usr/lib and /usr/include, and pointed to /usr to no avail.&nbsp; I also tried compiling gd myself.&nbsp; 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.&nbsp; 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.&nbsp; Is this the issue?&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libfreetype from -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz<br>checking for FT_Init_FreeType in -lfreetype... yes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libfreetype -lfreetype from system libs.<br>configure: checking where Zlib is installed...
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using runtime libz from -L/lib64 -lz<br>configure: checking where PNG is installed...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libjpeg from system libs.<br>configure: checking where libXpm is installed...<br>checking for XpmFreeXpmImage in -lXpm... no<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libiconv from system libs.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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.&nbsp; 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>

</blockquote></div><br>