[FGS] [x86_64] Install Mapserver on x86_64
Normand Savard
nsavard at mapgears.com
Sat Jun 12 09:07:55 EST 2010
Vincent,
I'm glad it works for you. In fact I didn't include the ming package in
the basic installer. I will modify it.
Norm
Vincent Letocart wrote:
> 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.
>
>
>
More information about the Foss-gis-suite
mailing list