[Cartoweb-users] From Windows XP to CentOS

Oliver Christen oliver.christen at camptocamp.com
Mon Apr 28 08:37:45 EDT 2008


Im not a specialist of problems linked to proj library and sadely I have no 
idea what could be wrong with your installation of proj.
Maybe ask on the mapserver mailinglist, you should be able to get an answer 
about that.

regards
Oliver



----- Original Message ----- 
From: "Fabio D'Ovidio" <fabiodovidio at gmail.com>
To: "Oliver Christen" <oliver.christen at camptocamp.com>
Cc: <cartoweb-users at lists.maptools.org>
Sent: Monday, April 28, 2008 12:54 PM
Subject: Re: [Cartoweb-users] From Windows XP to CentOS


> Hi Oliver!
> I did as following:
>
> # PROJ 4.5.0 http://www.remotesensing.org/proj
> #-------------------------------------------------------------------
> mkdir /usr/local/src/proj
> cd /usr/local/src/proj
> wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz
> tar zxvf proj-4.5.0.tar.gz
> chown -R root.root proj-4.5.0
> find proj-4.5.0 -type d | xargs chmod 755
> cd proj-4.5.0
> ./configure
> make
> make install
> ldconfig
>
>
> # GEOS http://geos.refractions.net
> #-------------------------------------------------------------------
> mkdir /usr/local/src/geos
> cd /usr/local/src/geos
> wget http://geos.refractions.net/geos-2.2.3.tar.bz2
> tar jxvf geos-2.2.3.tar.bz2
> chown -R root.root geos-2.2.3
> find geos-2.2.3 -type d | xargs chmod 755
> cd geos-2.2.3
> ./configure
> make
> make install
> ldconfig
>
>
> # POSTGIS 1.2.0 http://www.postgis.org
> #-------------------------------------------------------------------
> mkdir /usr/local/src/postgis
> cd /usr/local/src/postgis
> wget http://www.postgis.org/download/postgis-1.2.0.tar.gz
> tar zxvf postgis-1.2.0.tar.gz
> chown -R root.root postgis-1.2.0
> cd postgis-1.2.0
> ./configure
> make
> make install
> ldconfig
>
> # su - postgres
> # createdb prova
> # createlang plpgsql prova
> # psql -f /usr/share/lwpostgis.sql -d prova
> # psql -f /usr/share/spatial_ref_sys.sql -d prova
>
>
> # GDAL 1.3.2 http://www.remotesensing.org/gdal/
> #-------------------------------------------------------------------
> mkdir /usr/local/src/gdal
> cd /usr/local/src/gdal
> wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz
> tar zxvf gdal-1.3.2.tar.gz
> chown -R root.root gdal-1.3.2
> cd gdal-1.3.2
> ./configure
> make
> make install
> ldconfig
>
>
> # MapServer 4.10.0 http://mapserver.gis.umn.edu/
> #-------------------------------------------------------------------
> mkdir /usr/local/src/mapserver
> cd /usr/local/src/mapserver
> wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz
> tar zxvf mapserver-4.10.0.tar.gz
> chown -R root.root mapserver-4.10.0
> cd mapserver-4.10.0
> ./configure --with-wfs --with-wcs --with-wmsclient --with-wfsclient \
>    --with-proj --with-ogr --with-gdal --with-postgis --with-php=/usr/include/php
> make
> install -s mapserv /var/www/cgi-bin
> install -s mapscript/php3/php_mapscript.so /usr/lib/php/modules
> ln -s php_mapscript.so /usr/lib/php/modules/php_mapscript_4.10.0.so
> install -s legend     /usr/local/bin
> install -s scalebar   /usr/local/bin
> install -s shp2img    /usr/local/bin
> install -s shptree    /usr/local/bin
> install -s shptreetst /usr/local/bin
> install -s shptreevis /usr/local/bin
> install -s sortshp    /usr/local/bin
> install -s tile4ms    /usr/local/bin
>
>
> Extensions in my php.ini are:
>
> extension=php_mapscript.so
> extension=pgsql.so
> extension=mbstring.so
> extension=pdo.so
> extension=xmlrpc.so
> extension=gd.so
> extension=xsl.so
> extension=pdo_sqlite.so
> extension=libcurl.so
> extension=soap.so
>
> Oliver Christen ha scritto:
>> it seems to be a projection error, so I presume the proj library is not 
>> installed correctly
>>
>> regards
>> Oliver
>>
>>
>>> Hi list!
>>> I developed a cartoweb plugin for an application of mine on Windows Xp 
>>> and now I'm migrating the project on Linux CentOS5.
>>> I have two problem but I don't know why:
>>>
>>> 1. I installed apache, php, php\mapscript, mapserver and I have no error 
>>> displayed in info.php that check for php_mapscript.so module
>>> 2. I loaded extensions e.g. php_mapscript.so in php.ini
>>> 3. I configured PEAR extension for php in order to connect DBs
>>>
>>>
>>> The errors are:
>>>
>>> 1. Call to undefined function ms_newprojectionobj() (but php_mapscript 
>>> module is loaded)
>>> 2. Unable to recenter on feature ids
>>>
>>> What's worng?
>>>
>>> Fabio
>>>
>>> _______________________________________________
>>> Cartoweb-users mailing list
>>> Cartoweb-users at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>
>>
>>
>
> -- 
> Ing. Fabio D'Ovidio
>
> INOVA Open Solutions s.r.l.
> Web : http://www.inovaos.it
> Tel.: 081 197 57 600
> mail: fabiodovidio at gmail.com
>
> 



More information about the Cartoweb-users mailing list