[FGS] [x86_64] Install Mapserver on x86_64

Vincent Letocart vincent.letocart at aeronomie.be
Thu Jun 10 06:35:53 EST 2010


On 08 June 2010, at 21:31:48 (Epoch+1276029108 sec), Normand Savard wrote : 
> Vincent,
> 
> I created another basic package with the missing postgresql-server
> package since the posgis-lib package was included.  I also added an
> extrabasic package without the postgresql-server and  posgis-lib
> packages.
> 
> The apache error comes from this code in /path/to/fgs/etc/init.d/apache
> 
> 
> if [ $USER = 'root' ] ; then
>    [ `grep -c '^apache:' /etc/passwd` -eq 0 ] && /usr/sbin/adduser
> apache -s /sbin/nologin -d $FGS_HOME/www -c 'Apache - FGS'
> 2>/dev/null
>    # make sure that user apache has been created
>    if [ `grep -c '^apache:' /etc/passwd` -ne 1 ] ; then
>        echo "! Cannot create user 'apache', could not start apache
> as root."
>        exit 1
>    fi

Hi Norman

The adduser command is not executed, because it is not available
on Suse

    # which adduser
    which: no adduser in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
    # which useradd
    /usr/sbin/useradd
    # 

Adduser seems typical for Slack- and Debian-based... I'am 
Debian-based too but it is not what's running at the office :/

> I think this is the "adduser" command that causes the problem though
> I'm not sure.  You could remove the 'apache' package by doing 'fgs
> remove apache-module'.  You could then download the apache package
> from the maptools Web site, untar it and modify the faulty command.
> You tar it again and do 'fgs install apache-module
> /path/to/new_apache_package'.  That could work.  Or you can add
> manually the  apache user to the /etc/passwd file before installing
> with the self-installer.

Creating group 'apache' and user 'apache' before installation
gives indeed a beter result.

> The FGS environment is a self-contained environment.  It could cause
> many side-effects to use it without the provided apache.  I never
> tried it.

We let it run on a dedicated server. So, this solution is not
very generic, but in our case, it does not really mind. :)

The last detail I had to deal with is a missing library: 

    [Thu Jun 10 12:58:33 2010] [error] [client xxx.xxx.xxx.xxx] 
    	 .../mapserver/www/cgi-bin/mapserv: error while loading shared 
	 libraries: libming.so.1: cannot open shared object file: No such 
	 file or directory

I then picked up the debian package for i386 and put the library and the
corresponding symlink in the lib directory of mapserver tree.

Acces to http://.../cgi-bin/mapserv gives the expected output.

Thanks

Best regards

Vincent.


-- 
Vulcans believe peace should not depend on force.
		-- Amanda, "Journey to Babel", stardate 3842.3


More information about the Foss-gis-suite mailing list