newbie: trouble building mapserver

Paul Hussein paul.hussein at JRC.IT
Wed Nov 22 13:54:43 EST 2006


Hi,

I am trying for the first time to build mapserver from source on
CentOS 4.4 (RHEL 4 clone), and have hit a compilation error.

The error is as below :


./libmap.a(mapgeos.o)(.text+0x180b): In function `msGEOSArea':
/root/build/mapserver-4.10.0/mapgeos.c:1114: undefined reference to `GEOSArea'
./libmap.a(mapgeos.o)(.text+0x1873): In function `msGEOSLength':
/root/build/mapserver-4.10.0/mapgeos.c:1140: undefined reference to `GEOSLength'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1


Can someone tell me if I need a specific version of the GEOS package,
or any other package. I have tried as much aspossible to follow the
linux build example given.

I include below a script I am using that gives all the versions and how I build.

Thanks


Paul.

==================================================
#!/bin/csh -fex
setenv MAPSERVER_DIR /home/mapserver

touch build
\rm -rf build
mkdir build
cd build
wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz
wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz
wget http://geos.refractions.net/geos-2.2.3.tar.bz2
wget wget http://postgis.refractions.net/download/postgis-1.1.5.tar.gz
wget http://curl.haxx.se/download/curl-7.16.0.tar.gz
wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz

tar xzf gdal-1.3.2.tar.gz
cd gdal-1.3.2
./configure --prefix=$MAPSERVER_DIR
make
make install
cd ..

tar xzf curl-7.16.0.tar.gz
cd curl-7.16.0
./configure --prefix=$MAPSERVER_DIR
make
make install
cd ..

tar xzf proj-4.5.0.tar.gz
cd proj-4.5.0
./configure --prefix=$MAPSERVER_DIR
make
make install
cd ..

tar xjf geos-2.2.3.tar.bz2
cd geos-2.2.3
./configure --prefix=$MAPSERVER_DIR
make
make install
cd ..

tar xzf postgis-1.1.5.tar.gz
cd postgis-1.1.5
rehash
./configure --prefix=$MAPSERVER_DIR
make
make install
cd ..

tar xzf mapserver-4.10.0.tar.gz
cd mapserver-4.10.0
./configure \
--with-wfsclient \
--with-wmsclient \
--with-tiff \
--with-threads \
--with-wcs \
--enable-debug \
--with-sos \
--prefix=$MAPSERVER_DIR \
--with-proj=$MAPSERVER_DIR \
--with-geos=$MAPSERVER_DIR/bin/geos-config \
--with-php=/usr/include/php \
--with-postgis=/usr/bin/pg_config \
--with-gdal=$MAPSERVER_DIR/bin/gdal-config
make
make install
cd ..


#\rm -rf build



More information about the mapserver-users mailing list