[Mapserver-users] mapserver build on redhat 9 problems

Daniel Morissette morissette at dmsolutions.ca
Mon Nov 3 17:13:24 EST 2003


Enils Bashi wrote:
> configure: error: Could not find gd.h or libgd.a/libgd.so in
> /noaa/mapserver/gd-2.0.15/. Make sure GD 2.0.12 or higher is compiled before
> calling configure.
> ---------------------
> 
> The files it is complaining about are in /noaa/mapserver/gd-2.0.15. 
> 
> [root at nutria gd-2.0.15]# find . -name "gd.h"
> ./gd.h
> 
> [root at nutria gd-2.0.15]# find . -name "libgd.a"
> ./.libs/libgd.a
> 
> [root at nutria gd-2.0.15]# find . -name "libgd.so"
> ./.libs/libgd.so
> 
> 
> --- Is this weird or what?
> 

It is quite likely that you didn't 'install' the GD files.  You need to 
run 'make install' as root in the gd-2.0.15 directory to have the files 
installed in a location where they can be used for compiling and at 
runtime by a program. By default the files will be installed under 
/usr/local/lib and /usr/local/bin.  If you do not want to install in 
that location then you can use the --prefix configure option to specify 
a different install destination when you configure GD.

> If I run configure with no options it runs ok, but the mapserv binary does
> not work with 
> apache2 ( and the permissions are set right)
> 
> 

So you already have another GD installed in the default system 
directory, MapServer's configure finds it and tries to use it.  It's 
either coming from RH RPMs, or you did run make install in the GD 
directory already but didn't run 'ldconfig'.

Either way read on, there may be a couple of reasons why you get the 
error... check the Apache error_log, and look for an error message.

If the error_log says something about libgd.so.x.y not found then make 
sure that library is in your runtime library path, see the following 
wiki page: 
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FindingSharedLibraries

It may also be a crash or a 'libgd.so: symbol xxx not found' kind of 
error, in which case you quite likely have more than one copy of the GD 
lib + headers installed on your system (one coming from RH RPM, and one 
coming from source?) and you may need to remove the gd-devel RPM to 
avoid a conflict with the copy that you installed from source.

HTH

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list