Can't install MapServer

Alejandro Mejia Evertsz amejia at GUA.NET
Fri Nov 11 11:19:01 EST 2005


Thanks Gavin and Stephen.
I forgot to mention I'm running a FreeBSD 5.4 box.
I followed your advises like this:

I did:

# whereis gd
gd: /usr/ports/graphics/gd

But didn't seem logical to me, cause that location is where you install the
port from.
Anyway, I tried:
#./configure --with-gd=/usr/ports/graphics/gd

Got the same error.

I searched the files it says and got this locations:

# find / -name libgd.so
/usr/local/lib/libgd.so

# find / -name libgd.a
/usr/local/lib/libgd.a

# find / -name gd.h
/usr/local/include/php/ext/gd/libgd/gd.h
/usr/local/include/gd.h
/usr/ports/graphics/graphviz/work/graphviz-2.2/gd/gd.h
/usr/ports/print/dvipsk-tetex/work/tetex-src-3.0/libs/gd/gd.h
/usr/ports/print/teTeX-base/work/tetex-src-3.0/libs/gd/gd.h
/usr/ports/www/mod_php5/work/php-5.0.5/ext/gd/libgd/gd.h

Then I did a:
#./configure --with-gd=/usr/local/include

But got the same error. Also got the error when I tried
#./configure --with-gd=/usr/local/lib


I think I'm not an experienced user with Unix, and this task is going to be
harder for a non-unix user.
But if anyone has something that could help... I'll be glad to hear about
it! ;)

Thanks to all.
Cheers!

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Gavin Simpson
Sent: Viernes, 11 de Noviembre de 2005 09:26 a.m.
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Can't install MapServer

On Fri, 2005-11-11 at 09:03 -0600, Alejandro Mejia Evertsz wrote:
> I'm a newbie on this unix stuff, but I know a little bit about ports, 
> so I tried installing MapServer using ports, but it failed, so I 
> decided to install it manually.
> When I do the ./configure I get this error:
>  
> configure: error: Could not find gd.h or libgd.a/libgd.so in 
> /usr/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).
>  
> But I know I have GD installed, and it's higher than the one
> requiered:
>  
> # pkg_info | grep gd
> gd-2.0.33_3,1       A graphics library for fast creation of images
> gdal-1.2.1_2        A translator library for raster geospatial data
> formats
> php5-gd-5.0.5_1     The gd shared extension for php
> 
> I don't know what to do next...
> Can somebody help me?
>  
> Thanks in advance.
>  
> Alejandro Mejia Evertsz

If configure can't find gd itself then you need to help it out. try:

whereis gd

at in bash/shell for example, or search for gd.h, then specify the location
in the configure line, --with-gd= etc. I don't know your system, but on
linux you'd also have a gd-devel package that contains the headers (gd.h)
that you need to compile against. So even though you have gd, you don't seem
to have the devel headers installed, you can just use gd.

HTH

G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson                     [T] +44 (0)20 7679 5522
ENSIS Research Fellow             [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC                 [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography       [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way                    [W] http://www.ucl.ac.uk/~ucfagls/
London.  WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the mapserver-users mailing list