[Mapserver-users] configure: error: Could not find gd.h or libgd.a/libgd.so
Allan Shout
ashout at mweb.co.za
Thu Dec 11 23:31:38 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_002D_01C3C08A.5C42B000
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I am trying to install MapServer and I'm following the =
documentation=3D20
"MapServer Cygwin Compilation and Installation HowTo".
I have a problem getting mapserver-4.0 to compile with the gd and proj =
libraries.
When I enter the following line in the mapserver directory,=20
./configure --with-gd=3D../gd-1.8.4 --with-proj=3D/usr/local
I get the following output,
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... lex
checking for yywrap in -ll... no
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++... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
checking where FreeType 2.x is installed...
using libfreetype from -lfreetype -lz
checking for FT_Init_FreeType in -lfreetype... no
using libfreetype -lfreetype -lz from system libs.
checking where Zlib is installed...
using libz from -L/lib -lz
checking where PNG is installed...
using libpng from -L/lib -lpng
checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
XPM (libXpm) library cannot be found, possibly needed for GD
checking where libiconv is installed...
using libiconv from -L/lib -liconv
checking for GD 2.0.12 or higher...
checking for gdImageSetAntiAliased in -lgd... no
checking whether GD needs libiconv...
checking for gdImageSetAntiAliased in -lgd... no
configure: error: Could not find gd.h or libgd.a/libgd.so in =
/usr/src/Projects/gd-1.8.4. Make sure GD 2.0.12 or higher is compiled =
before calling configure.
configure can't find gd.h or libgd.a/libgd.so, even though I've =
confirmed these files are in /usr/src/Projects/gd-1.8.4. Then I tried to =
use the newer gd-2.0.12 (/usr/src/Projects/gd-2.0.12) with the following =
command,
./configure --with-gd=3D../gd-2.0.12 --with-proj=3D/usr/local
Although I'm not entirely sure I've compiled and arranged GD 2.0.12 =
correctly.
How can I get configure to find these files?
Thanks,
Benjamin
------=_NextPart_000_002D_01C3C08A.5C42B000
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV><FONT face=3DArial =
size=3D2>
<DIV><BR>I am trying to install MapServer and I'm following the=20
documentation=3D20<BR>"MapServer Cygwin Compilation and Installation =
HowTo".<BR>I=20
have a problem getting mapserver-4.0 to compile with the gd and =
proj=20
libraries.</DIV>
<DIV>When I enter the following line in the mapserver=20
directory, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>./configure --with-gd=3D../gd-1.8.4=20
--with-proj=3D/usr/local<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>I get the following =
output,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>loading cache =
./config.cache<BR>checking for gcc...=20
gcc<BR>checking whether the C compiler (gcc ) works... =
yes<BR>checking=20
whether the C compiler (gcc ) is a cross-compiler... =
no<BR>checking=20
whether we are using GNU C... yes<BR>checking whether gcc accepts -g...=20
yes<BR>checking for c++... c++<BR>checking whether the C++ compiler =
(c++ )=20
works... yes<BR>checking whether the C++ compiler (c++ ) is a=20
cross-compiler... no<BR>checking whether we are using GNU C++... =
yes<BR>checking=20
whether c++ accepts -g... yes<BR>checking for ranlib... =
ranlib<BR>checking for=20
flex... lex<BR>checking for yywrap in -ll... no<BR>checking for bison... =
bison=20
-y<BR>checking if compiler supports -R... no<BR>checking if compiler =
supports=20
-Wl,-rpath,... yes<BR>checking for exp in -lm... yes<BR>checking for=20
__gxx_personality_v0 in -lstdc++... no<BR>checking how to run the C=20
preprocessor... gcc -E<BR>checking for ANSI C header files... =
yes<BR>checking=20
for strcasecmp... yes<BR>checking for strncasecmp... yes<BR>checking for =
strdup... yes<BR>checking whether we should include JPEG =
support...<BR>checking=20
for jpeg_read_header in -ljpeg...=20
yes<BR> using libjpeg from =
system=20
libs.<BR>checking where FreeType 2.x is=20
installed...<BR> using =
libfreetype=20
from -lfreetype -lz<BR>checking for FT_Init_FreeType in -lfreetype...=20
no<BR> using libfreetype =
-lfreetype=20
-lz from system libs.<BR>checking where Zlib is=20
installed...<BR> using libz =
from=20
-L/lib -lz<BR>checking where PNG is=20
installed...<BR> using libpng =
from=20
-L/lib -lpng<BR>checking where libXpm is installed...<BR>checking for=20
XpmFreeXpmImage in -lXpm... =
no<BR> XPM=20
(libXpm) library cannot be found, possibly needed for GD<BR>checking =
where=20
libiconv is installed...<BR> =
using=20
libiconv from -L/lib -liconv<BR>checking for GD 2.0.12 or =
higher...<BR>checking=20
for gdImageSetAntiAliased in -lgd... no<BR>checking whether GD needs=20
libiconv...<BR>checking for gdImageSetAntiAliased in -lgd... =
no<BR>configure:=20
error: Could not find gd.h or libgd.a/libgd.so in =
/usr/src/Projects/gd-1.8.4.=20
Make sure GD 2.0.12 or higher is compiled before calling=20
configure.<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>configure can't find gd.h or =
libgd.a/libgd.so, even=20
though I've confirmed these files are in /usr/src/Projects/gd-1.8.4. =
Then I=20
tried to use the newer gd-2.0.12 (/usr/src/Projects/gd-2.0.12) with the=20
following command,</FONT></DIV>
<DIV> </DIV>
<DIV>./configure --with-gd=3D../gd-2.0.12 =
--with-proj=3D/usr/local</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Although I'm not entirely sure I've =
compiled and=20
arranged GD 2.0.12 correctly.</FONT></DIV>
<DIV>How can I get configure to find these files?</DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Benjamin</FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_002D_01C3C08A.5C42B000--
More information about the MapServer-users
mailing list