Gerry,<br><br>Really appreciate your tip, that should go some way in helping me to solve this thing.<br><br>I had a research for issues related to linux 64bit compilations, and came up fairly empty.&nbsp; There was <a href="http://rvl3.ecn.purdue.edu/~cromwell/compiling.html">
http://rvl3.ecn.purdue.edu/~cromwell/compiling.html</a> , which I doubt is what I need.<br><br>Is there any chance you can explain what changes you had to make?&nbsp; If you can provide the altered makefile for MapServer as well that'd be great.
<br><br>Much apprecaited.<br><br>Xin<br><br><div><span class="gmail_quote">On 05/12/05, <b class="gmail_sendername">Gerry Creager N5JXS</b> &lt;<a href="mailto:gerry.creager@tamu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

gerry.creager@tamu.edu</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;">Doing the 64bit compiles has been a challenge for us.&nbsp;&nbsp;We're
<br>transitioning to, effectively, an all Opteron facility and we've found<br>that a lot of the 32bit packages just don't behave right the first time,<br>and that we _do_ have to spend a fair bit of time tweaking Makefiles.
<br><br>If you're using Opteron, there are possibilities of compiling as a 32bit<br>app and then running it in the 64bit space.&nbsp;&nbsp;You lose access to the<br>extended memory addressing but not really any loss of speed.<br><br>

gerry<br><br>Xin wrote:<br>&gt; Hi again,<br>&gt;<br>&gt; I'm still having difficulties with this.&nbsp;&nbsp;I don't believe the problem<br>&gt; lies with the server being 64bit as I've read other people compile<br>&gt; successfully on them.
<br>&gt;<br>&gt; I've searched the archives and there seems to be a few posts concerning<br>&gt; this can't find gd.h problem, but no fixes.<br>&gt;<br>&gt; Any advice is welcome.<br>&gt;<br>&gt; Cheers,<br>&gt; Xin<br>&gt;
<br>&gt; On 02/12/05, *Xin* &lt;<a href="mailto:crazygecko@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crazygecko@gmail.com</a> &lt;mailto:<a href="mailto:crazygecko@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
crazygecko@gmail.com</a>&gt;&gt;<br>&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I'm attemping to compile mapserver on our web hosting server, which
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; are cool enough to allow this.&nbsp;&nbsp;But I'm having some problems.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; First off, it says it can't find gd.h.&nbsp;&nbsp;I've included the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; compilation command used and output at the end.&nbsp;&nbsp;I've checked and gd
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; does exist in /usr/lib and /usr/include, and pointed to /usr to no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; avail.&nbsp;&nbsp;I also tried compiling gd myself.&nbsp;&nbsp;Gd was compiled<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; successfully, but mapserver can't see it.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I then called a friend who's with the same hosting company and
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; managed to compile mapserver successfully.&nbsp;&nbsp;He told me he didn't<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; have any issues as it was on a older, 32 bit machine, and the server<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I'm on is 64bit.&nbsp;&nbsp;Is this the issue?&nbsp;&nbsp;Or am I just doing something
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; stupid.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I'm very grateful for any advice.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Cheers,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Xin<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: WARNING: you should use --build, --host, --target<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-gcc... no
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for gcc... gcc<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for C compiler default output file name... a.out<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether the C compiler works... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether we are cross compiling... no
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for suffix of executables...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for suffix of object files... o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether we are using the GNU C compiler... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether gcc accepts -g... yes
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for gcc option to accept ANSI C... none needed<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-g++... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-c++... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-gpp... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-aCC... no<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-CC... no
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-cxx... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-cc++... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-cl... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-FCC... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-KCC... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-RCC... no
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-xlC_r... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-xlC... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for g++... g++<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether we are using the GNU C++ compiler... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether g++ accepts -g... yes
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for 2-ranlib... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for ranlib... ranlib<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for flex... flex<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for yywrap in -lfl... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking lex output file root... lex.yy<br>

&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking whether yytext is a pointer... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for bison... bison -y<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking if compiler supports -R... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking if compiler supports -Wl,-rpath,... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for exp in -lm... yes
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for __gxx_personality_v0 in -lstdc++... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking how to run the C preprocessor... gcc -E<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for egrep... grep -E<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for ANSI C header files... yes
<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for strcasecmp... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for strncasecmp... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for strdup... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for strlcat... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MapServer Version from map.h: '4.6.1'<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking where FreeType 
2.x is installed...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libfreetype from -L/usr/lib64 -Wl,--rpath<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -Wl,/usr/lib64 -lfreetype -lz<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for FT_Init_FreeType in -lfreetype... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libfreetype -lfreetype from system libs.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking where Zlib is installed...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using runtime libz from -L/lib64 -lz<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking where PNG is installed...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libpng from -L/lib64 -lpng
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking whether we should include JPEG support...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for jpeg_read_header in -ljpeg... yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libjpeg from system libs.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking where libXpm is installed...
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for XpmFreeXpmImage in -lXpm... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XPM (libXpm) library cannot be found, possibly needed for GD<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking where libiconv is installed...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for iconv_open in -lc... yes
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for libiconv_open in -liconv... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using libiconv from system libs.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libiconv found. Enabling internationalization (-DUSE_ICONV)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking for GD 
2.0.16 or higher...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for gdFontCacheSetup in -lgd... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: checking whether GD needs libiconv...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; checking for gdFontCacheSetup in -lgd... no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; configure: error: Could not find 
gd.h or libgd.a/libgd.so in /usr.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Make sure GD 2.0.16 or higher is compiled before calling configure.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You may also get this error if you didn't specify the appropriate<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; location for one of GD's dependencies (freetype, libpng, libjpeg or
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; libiconv).<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ---<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; [~/dev/mapserver- 4.6.1]# whereis gd<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; gd: /usr/include/gd.h<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; [~/dev/mapserver-4.6.1]# ls /usr/include/gd.*<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; /usr/include/gd.h
<br>&gt;<br>&gt;<br><br>--<br>Gerry Creager -- <a href="mailto:gerry.creager@tamu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gerry.creager@tamu.edu</a><br>Texas Mesonet -- AATLT, Texas A&amp;M University
<br>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578
<br>Page: 979.228.0173<br>Office: 903A Eller Bldg, TAMU, College Station, TX 77843<br></blockquote></div><br>