newbie: trouble building mapserver

Paul Hussein paul.hussein at HAPNIN.NET
Thu Nov 23 11:22:12 EST 2006


Yes you are right. My issue was I had geos 2.2.1 rpm installed and as
the link path has /usr/lib first ( when I think it should have
-l/path/to/geos ) it tried to compile against 2.2.3 and link against
2.2.1. So both an issue with me and the Makefile. Can I suggest this
is changed in the link line.


Thanks

Paul.



On 11/23/06, Yves Jacolin <yjacolin at free.fr> wrote:
> Hello,
> I succeed to build GEOS 2.2.3 with mapserver 4.10, am I wrong ? This seems
> worked.
>
> Regards,
>
> Y.
> Le Mercredi 22 Novembre 2006 22:39, Armin Burger a écrit:
> > Hi Paul
> >
> > I made the experience that Mapserver 4.10 just compiles with GEOS
> > version 3, currently as release candidate 2. Mapserver 4.8 compiled fine
> > with Geos 2.2.
> >
> > armin
> >
> > Paul Hussein wrote:
> > > 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
>
> --
> Yves Jacolin
> ---
> http://yjacolin.gloobe.org
>



More information about the mapserver-users mailing list