[Mapserver-users] HELP {Scanned}

Siki Zoltan siki at agt.bme.hu
Tue Jul 27 14:02:32 EDT 2004


Hi,

The mapserver version and the neccessary libraries version must
match. Which version of mapserver are you using?

A use mapserver 4.0 on RedHat 9 with the following libraries:
gd-2.0.15
gdal-1.1.9
libgeotiff-1.2.1
proj-4.4.7
libpng10-1.0.13

First you have to configure, make and install the support libraries.
If you install the libs in non-standard library (e.g. /usr/local/xxx) then
specify the library in /etc/ld.so.conf. Mapserver's configure script will 
alert you if some libs are missing.

You can extract the tgz (tar.gz) file to any library use have write
access. Configure mapserver and read carefully the output, add the
neccessary --with-xxx switches. Make mapserver then copy the executable to
your cgi-bin directory. Thats all I did.

Here are my gd lines.

# GD distribution (graphics library GIF and/or PNG support). (REQUIRED)
#
#   - Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_1_3).
#   - Versions 1.6 and greater write PNG (-DUSE_GD_1_6). Add -lpng -lz to GD_LIB line.
#
#
GDFONT_OBJ=gd-1.2/gdfontt.o gd-1.2/gdfonts.o gd-1.2/gdfontmb.o gd-1.2/gdfontl.o gd-1.2/gdfontg.o
GD_INC=  -I/usr/local/include
GD_LIB=  -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz  
GD=       -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
GD_STATIC = 

Here is the result of the "ldd mapserv" command

	libgd.so.2 => /usr/lib/libgd.so.2 (0x40025000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4005c000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4007a000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x400cb000)
	libz.so.1 => /usr/lib/libz.so.1 (0x400ee000)
	libgdal.1.1.so => /usr/lib/libgdal.1.1.so (0x400fc000)
	libpq.so.3 => /usr/lib/libpq.so.3 (0x40384000)
	libm.so.6 => /lib/tls/libm.so.6 (0x4039a000)
	libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x403bc000)
	libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
	libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4046f000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4047e000)
	libungif.so.4 => /usr/lib/libungif.so.4 (0x4055d000)
	libdl.so.2 => /lib/libdl.so.2 (0x40566000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4056a000)
	libssl.so.4 => /lib/libssl.so.4 (0x40572000)
	libcrypto.so.4 => /lib/libcrypto.so.4 (0x405a7000)
	libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40698000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x406f6000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x40724000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x40736000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4074b000)
	libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x40759000)
	libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x4076c000)
	libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x4076f000)

Bye
Zoltan

On Tue, 27 Jul 2004, GONZALEZ,  Jose A. wrote:

> Zoltan,
> 
> Can you tell me what my GD lines should look like in my Makefile?  I
> think some of my issues may be stemming from those lines.  For example
> my lines refer to gd-1.2 but I have the latest version which is
> gd-2.0.27.  Also, this is a linux newbie question, When I download
> tar.gz files, where should I extract them to?  And then all the
> supporting libraries where should those be extracted to?  This may be
> part of my issues.  I extracted them all to their own folders in
> /root/downloads and then I configured/installed from those directories.
> Am I doing this right?  Thanks again for all your help.
> 
> -Joe 
> 




More information about the mapserver-users mailing list