[FGS] [x86_64] Install Mapserver on x86_64

Vincent Letocart vincent.letocart at aeronomie.be
Tue Jun 8 03:55:34 EST 2010


On 07 June 2010, at 21:10:38 (Epoch+1275941438 sec), Normand Savard wrote : 
> Vincent,
> 
> Please try the new self-installer package:
> 
> http://dl.maptools.org/dl/fgs/releases/9.5/self-installers/
> 
> Norm

Hello Norman

I tried the "basic" package and this works indeed much better! There remain 
a few error messages:

	+ Running postgis-lib's installation script :
	! cannot convert $libdir in lwpostgis.sql or postgis.sql: no such file..
	! cannot convert $libdir in lwpostgis_upgrade.sql or postgis_upgrade_xxx.sql: no such file..
	! cannot convert $libdir in spatial_ref_sys.sql, no such file..
	
	
	+ Starting 'apache':
	! Cannot create user 'apache', could not start apache as root.

[See attached file for the full output]

Actually, the machine where mapserver should run has apache2 already
installed, and the "databse stuff" (mysql) is running on another machine.
Maybe you try to be too flexible with your installation ? :)

Do you know if it is possible to specify an external database to use,
and to use the already installed apache2 instance running on the server ?

Regards

Vincent

-- 
Witch!  Witch!  They'll burn ya!
		-- Hag, "Tomorrow is Yesterday", stardate unknown
-------------- next part --------------
Where do you want to install the FGS suite [/opt/fgs] ? /srv/www/vhosts/globvolcano/mapserver

+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.TEj94i...ok
+ Running base's installer
+ module : base
+ Running fgs install mapserver-php
* Probing last version of module 'mapserver-php'... 5.6.3
+ Installing mapserver-php:
  + Getting and extracting module 'mapserver-php'... ok
    + Getting and extracting module 'mapserver-base'... ok
      + Getting and extracting module 'libstdc++-lib'... ok
      + Getting and extracting module 'libgcc-lib'... ok
      + Getting and extracting module 'apache-base'... ok
        + Getting and extracting module 'expat-base'... ok
      + Getting and extracting module 'gd-lib'... ok
        + Getting and extracting module 'jpeg-lib'... ok
        + Getting and extracting module 'freetype-lib'... ok
        + Getting and extracting module 'libpng-lib'... ok
          + Getting and extracting module 'zlib-lib'... ok
      + Getting and extracting module 'curl-lib'... ok
        + Getting and extracting module 'openssl-lib'... ok
      + Getting and extracting module 'proj-lib'... ok
      + Getting and extracting module 'postgresql-lib'... ok
      + Getting and extracting module 'gdal-base'... ok
        + Getting and extracting module 'tiff-lib'... ok
        + Getting and extracting module 'libgeotiff-lib'... ok
        + Getting and extracting module 'xerces_c-base'... ok
        + Getting and extracting module 'unixODBC-base'... ok
        + Getting and extracting module 'libungif-base'... ok
      + Getting and extracting module 'libiconv-base'... ok
      + Getting and extracting module 'proj4_epsg42xxx-support'... ok
      + Getting and extracting module 'geos-lib'... ok
      + Getting and extracting module 'libxml2-base'... ok
      + Getting and extracting module 'agg-lib'... ok
    + Getting and extracting module 'php-base'... ok
+ Copying all files into FGS environment... ok
+ Running apache-base's installation script :
*      *** Apache installation ***
* Selecting TCP port... Example: 80, 8080, 8000
? What TCP port do you want to use [80] : 8081
+ Port selected : '8081'
* You can start apache with : fgs start apache
*      *** End of Apache installation ***
+ Running gdal-base's installation script :
+ Running libgeotiff-lib's installation script :
+ Running mapserver-base's installation script :
+ Running mapserver-php's installation script :
+ php_mapscript extension added in /srv/www/vhosts/globvolcano/mapserver/www/conf/php5.ini.template-dist
+ Running php-base's installation script :
+ php5.ini file installed in /srv/www/vhosts/globvolcano/mapserver/www/conf/
What is the time zone (default=America/Montreal)?
Europe/Brussels
+ Running proj4_epsg42xxx-support's installation script :
+ Running proj-lib's installation script :
* Module 'mapserver-php' installed with success.
+ Running fgs install postgis-lib
* Probing last version of module 'postgis-lib'... 1.5.0
+ Installing postgis-lib:
  + Getting and extracting module 'postgis-lib'... ok
+ Copying all files into FGS environment... ok
+ Running postgis-lib's installation script :
! cannot convert $libdir in lwpostgis.sql or postgis.sql: no such file..
! cannot convert $libdir in lwpostgis_upgrade.sql or postgis_upgrade_xxx.sql: no such file..
! cannot convert $libdir in spatial_ref_sys.sql, no such file..
* Module 'postgis-lib' installed with success.
+ Running fgs install gmap-demo
* Probing last version of module 'gmap-demo'... cvs_HEAD
+ Installing gmap-demo:
  + Getting and extracting module 'gmap-demo'... ok
+ Copying all files into FGS environment... ok
+ Running gmap-demo's installation script :
* gmap-demo installed : You can access it from http://localhost:8081/gmap-demo/
* Module 'gmap-demo' installed with success.
+ Running fgs install ming-lib
* Probing last version of module 'ming-lib'... 0.4.2
+ Installing ming-lib:
  + Getting and extracting module 'ming-lib'... ok
+ Copying all files into FGS environment... ok
* Module 'ming-lib' installed with success.
+ Starting FGS's daemon:
+ Starting 'apache':
! Cannot create user 'apache', could not start apache as root.

111111111111111111111111111111111111111111111111111111111111111

To start installed FGS's daemon at boot time, do (as root) :

$ echo "su root -c \"( . /srv/www/vhosts/globvolcano/mapserver/setenv.sh ; fgs start )\"" >> /etc/rc.d/rc.local

222222222222222222222222222222222222222222222222222222222222222

Before using the FGS environment, you need to set some
environment variables (each time you login) : 

$ cd /srv/www/vhosts/globvolcano/mapserver
$ . setenv.sh

OR you can do it automatically each time you log in by doing : 

echo ". /srv/www/vhosts/globvolcano/mapserver/setenv.sh" >> ~/.bashrc

****************************************************************


More information about the Foss-gis-suite mailing list