[Mapserver-users] Problem in installing Proj4 and GDAL for Linux RH Advanced Server

Taha Al Sayed t_alsayed at thuraya.com
Tue Jul 13 03:56:46 EDT 2004


Dear Frank and norbert

Thank you for your reply. The following is some more information about
my configuration:


..>I put all of my mapserver configuration files under
</usr/src/projects> which are as follows:

curl-7.12.0     gd-2.0.27  libgeotiff-1.2.2  OpenEV_FW
postgis-0.8.2.tar.gz  tiff-v3.6.1
freetype-1.3.1  jpeg-6b    mapserver-4.2.0   PaxHeaders.13119
proj-4.4.8            tutorial.zip

..>After installing all of the above individually using ./configure and
make I typed the following command in mapserver:

./configure --with-freetype --with-zlib --with-png --with-jpeg
--with-gd=/usr/local --with-proj --with-gdal --with-tiff

..>I got the following:

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
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 egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
configure: checking where FreeType 2.x is installed......
checking for freetype-config... /usr/bin/freetype-config
        using libfreetype from -L/usr/lib -lfreetype
checking for FT_Init_FreeType in -lfreetype... yes
        using libfreetype -lfreetype from system libs.
configure: checking where Zlib is installed......
checking for zlibVersion in -lz... yes
        using libz from system libs.
configure: checking where PNG is installed......
checking for png_init_io in -lpng... yes
        using libpng from system libs.
configure: checking whether we should include JPEG support......
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
configure: checking where libXpm is installed......
checking for XpmFreeXpmImage in -lXpm... no
        XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed......
checking for libiconv_open in -liconv... no
        libiconv library cannot be found, possibly needed for GD
configure: checking for GD 2.0.12 or higher......
checking for gdImageSetAntiAliased in -lgd... yes
        using libgd 2.0.12 (or higher) from -L/usr/local/lib -lgd -ljpeg
-lfreetype -lpng -lz
checking for gdImageGif in -lc... no
checking for gdImagePng in -lc... yes
checking for gdImageJpeg in -lc... yes
checking for gdImageWBMP in -lc... yes
checking for gdImageStringFT in -lc... yes
checking for gdImageGifPtr in -lc... no
        using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT)
from /usr/local.
configure: checking whether we should include PDF support......
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... no
        libpdf not found... PDF support not included.
configure: checking whether we should include EPPL7 support......
        including EPPL7 support.
configure: checking whether we should include PROJ.4 support......
checking for pj_init in -lproj... yes
checking for pj_transform in -lproj... yes
checking for pj_latlong_from_proj in -lproj... yes
        using PROJ.4 from system libs.
configure: checking whether we should include thread safe support......
        thread safe support disabled.
configure: checking whether we should include ESRI SDE support......
        ESRI SDE support not requested.
configure: checking whether we should compile in MPATROL support......
        MPATROL support not requested.
configure: checking whether we should include OGR support......
        OGR support not requested.
checking if GDAL support requested... yes
checking for gdal-config...
/usr/src/projects/OpenEV_FW/bin_safe/gdal-config
checking checking ms JPEG output... no we, have GDAL available.
configure: checking whether we should include TIFF support......
checking for TIFFOpen in -ltiff... yes
        using libtiff from system libs.
checking if PostGIS support requested... no
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... no
configure: checking whether we should include WMS Server support......
        OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support......
        OGC WFS Server support not requested.
configure: checking whether we should include WMS Client Connections
support......
configure: checking whether we should include WFS Client Connections
support......
        OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR
required).
configure: checking for curl-config...
configure: checking HTTPD server (Apache) version...
checking for httpd... /usr/sbin/httpd
        /usr/sbin/httpd version is Apache/1.3.23 (1003023).
Compiling with -DIGNORE_MISSING_DATA.
configure: checking whether we should enable debug features......
configure: checking for PHP/MapScript module options......
        PHP/MapScript module not configured.
configure: creating ./config.status
config.status: creating Makefile

..>Then I typed make and after moved the mapserv file to the cgi-bin
folder.

..>Mapserv -v gives the following:

MapServer version 4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

..>ldd mapserv gives the following:

        libgd.so.2 => /usr/local/lib/libgd.so.2 (0x4002f000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40069000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40088000)
        libtiff.so.3 => /usr/local/lib/libtiff.so.3 (0x400bc000)
        libm.so.6 => /lib/i686/libm.so.6 (0x400fe000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40121000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4025e000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4026d000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x40363000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40384000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

..>My root path is as follows:

/usr/kerberos/sbin:/usr/kerberos/bin:/opt/IBMJava2-131/bin:/opt/IBMJava2
-131/jre/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bi
n:/usr/X11R6/bin:/root/bin:/usr/src/projects/OpenEV_FW/bin_safe:/usr/src
/projects/proj-4.4.8/

..>My /etc/ld.so.conf contains the following:

/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-2.3.1/lib
/usr/lib/sane
/usr/lib/mysql
/usr/local/lib
/usr/src/projects/proj-4.4.8

..>The map file that I'm trying to read is the following:

example1-1.map      [----]  0 L:[  1+ 0   1/ 38] *(0   / 867b)=   32 20H
    MAP
  IMAGETYPE      PNG
  EXTENT         201621.496941 -294488.285333 1425518.020722
498254.511514
  SIZE           400 300
  SHAPEPATH      "data"
  IMAGECOLOR     255 255 255

  PROJECTION
    "proj=laea"
    "ellps=clrk66"
    "lat_0=45"
    "lon_0=-100"
  #
  # Alternatively, you can specify an EPSG code.
  #     "init=epsg:2163"
  #
  END

  # Start of LAYER DEFINITIONS
---------------------------------------------
  LAYER # States polygon layer begins here
    NAME         states
    DATA         states_ugl
    STATUS       DEFAULT
    TYPE         POLYGON

    PROJECTION
      "init=epsg:4326"
            END

    CLASS
      COLOR        232 232 232
      OUTLINECOLOR 32 32 32
    END
  END # States polygon layer ends here
  # End of LAYER DEFINITIONS -------------------------------

END # end of map file/object

..>This tutorial I got from the mapserver web site which is
<tutorial.zip>. 

..>The command I type from the internet explorer is as follows:

http://192.168.3.48/cgi-bin/mapserv?map=/var/www/html/tutorial/example1-
1.map&mode=map
 
..>The error that I get is as follows:

http://192.168.3.48/cgi-bin/mapserv?map=/var/www/html/tutorial/example1-
1.map&mode=map

Kindest Regards,


Taha

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Monday, July 12, 2004 5:27 PM
To: Taha Al Sayed
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Problem in installing Proj4 and GDAL for
Linux RH Advanced Server

Taha Al Sayed wrote:
> Dear All
>  
> I'm trying to install the demo from map server on a Linux box with Red
hat Advanced server. I managed to get it to work only with shp files
(after some modifications). So far I'm not able to get the projection to
work neither the GDAL. I have installed the packages for GDAL and Proj4
and then included then in the configuration of the mapserver using
<--with-gdal --with-proj>. When I test the proj4 and gdal packages
seperately they seem to work, but from map the server they don't,
although the configuration in mapserver doesn't give any error messages.

Taha,

This report doesn't give us much to go on to help you work out the
problem.
What does "mapserv -v" report?  What does "ldd mapserv" report?  What
makes you think the projections aren't working?

Best regards,
-- 
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent








More information about the mapserver-users mailing list