MapServer Installation Problem
Gavin Simpson
gavin.simpson at UCL.AC.UK
Tue Oct 4 09:25:48 PDT 2005
On Tue, 2005-10-04 at 12:23 -0300, Willian Rampazzo wrote:
> Hello Folks,
>
> I'm installig mapserver on a linux server running Fedora Core 4,
> i have already installed the libraries i need, this is the list of libraries:
>
> - Freetype
> - GD
> - GDAL
> - JPEG
> - Proj-4
> - TIFF
> - PNG
>
> But i'm still getting this error message with running configure:
>
> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/gd-2.0.33.
> 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).
>
> I checked the files it is asking for and they are on the directory needed:
>
> [root mapserver-4.6.1]# locate gd.h
> /usr/local/gd-2.0.33/include/gd.h
^^^^^^^^^
Perhaps this is the problem, gd.h is not in /usr/local/gd-2.0.33, but
in /usr/local/gd-2.0.33/include/
Perhaps try those locations in your configure line.
Also, I get:
locate gd.h
/usr/include/gd.h
/usr/include/php/ext/gd/php_gd.h
/usr/include/php/ext/gd/libgd/gd.h
On a FC2 box and on a FC box:
whereis gd.h
gd: /usr/include/gd.h
(locate is turned off by default on FC4 and I've not needed to re-
enable). Did you install/compile these by hand? It would have been
easier to grab as much as possible from from the YUM repositories.
Also, you'll need the php-gd if you want to use php with mapserver (from
you configure line).
Perhaps my FC4 mapserver install page can be of some use?
http://ecrc3.geog.ucl.ac.uk/dokuwiki/sysadmin/compile_mapserver
HTH
G
>
> [root mapserver-4.6.1]# locate libgd.a
> /usr/local/gd-2.0.33/lib/libgd.a
>
> [root mapserver-4.6.1]# locate libgd.so
> /usr/lib/libgd.so.2.0.0
> /usr/lib/libgd.so.2
> /usr/local/gd-2.0.33/lib/libgd.so.2.0.0
> /usr/local/gd-2.0.33/lib/libgd.so.2
> /usr/local/gd-2.0.33/lib/libgd.so
>
> The configure command with argumets i'm using is this one:
>
> [root mapserver-4.6.1]# ./configure --with-png=/usr/local --with-proj=/usr/local/proj-4.4.9
> --with-gdal=/usr/local/gdal-1.3.0/bin/gdal-config --with-php=/usr/local/php-5.0.5
> --with-gd=/usr/local/gd-2.0.33 --enable-force-freetype1 --with-freetype=/usr/local/freetype.2.1.10
> --with-wmsclient --with-jpeg=/usr/local
>
> Does any one have an idea of how can i solve this prolem ?
> Any help would be appreciated.
>
> Best regards,
>
> Willian Rampazzo
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
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