[FGS] Starting apache error: httpd cannot execute binary file
Hao Zhang
hao at zhang.nu
Mon Nov 9 10:42:10 EST 2009
Hi Norm,
I did not change the CPU variable. Do you mean that I should modify
install.sh file then rebuild self-installer? What output should I paste?
Regards,
Hao
On Fri, Nov 6, 2009 at 3:45 PM, Normand Savard <nsavard at mapgears.com> wrote:
> Hao Zhang wrote:
>
>> I start to install the self-installer I created
>> (fgs-mapserver_basic_5.2.1-1.0.1-linux-sparc64.bin), but it encounters such
>> fatal error:
>>
>> [... ...]
>> + Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.SCxSFA...ok
>> + Running base's installer
>> + module : base
>> + Running fgs install mapserver-base
>> * Probing last version of module 'mapserver-base'...
>>
>> ! Cannot find a mapserver-base module from /tmp/fgs-selfextract.SCxSFA
>>
>> ! Fatal error, please contact FGS team.
>>
>> Hao,
>
> It is probably related to the get_last_module_version() function. I don't
> remember if you change the CPU variable. Could you edit
> /fgs-dev/pkg_def/base/skeleton/etc/fgs/lib/install.sh and add an echo at the
> location marked below and paste the output? You'll have to redo your
> installer.
>
> Norm
>
> get_last_module_version ()
> {
> local FILES_SRC=$1
> local MODULE_NAME=$2
>
> # uname -i doesn't return the same things depending on the linux
> distributi\
> on...
>
> #local CPU=`uname -i`
> #[ $CPU = 'GenuineIntel' ] && CPU='i386'
> local CPU='i386'
> local FGS_PLATFORM="`uname -s | tr [A-Z] [a-z]`-$CPU"
>
> if [ `echo $FILES_SRC | grep -c 'http://'` -eq 1 ] ; then
> return 1
> # not yet implemented
> is_wget_installed
> local list_modules="$FGS_HOME/tmp/list_modules.$$.tmp"
> wget -q $FILES_SRC/ -O - 1> $list_modules 2>/dev/null
> if [ "$?" -ne 0 ] ; then
> rm -f $list_modules
> fatal_error "Cannot download '$FILES_SRC/$FILE_NAME',
> aborting..."
> fi
> else
> ## From path (cdrom, dvd, etc...)
> [ -d $FILES_SRC ] || fatal_error "Unable to find directory
> '$FILES_SRC'\
> , aborting..."
> cd $FILES_SRC
> fgs_package=`ls -1 fgs-$MODULE_NAME-*-$FGS_PLATFORM.tar.gz 2>/dev/null \
> | tail -n 1`
>
> >>>>>>>echo $fgs_package
>
> leftsubstring=fgs-${MODULE_NAME}-
> resultingstring=${fgs_package#$leftsubstring}
> rightsubstring=-${FGS_PLATFORM}.tar.gz
> finalstring=${resultingstring%$rightsubstring}
> echo $finalstring
> [ $? -ne 0 ] && fatal_error "Unable to find module for '$MODULE_NAME'
> i\
> n $FILES_SRC"
> fi
> return 0
> }
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/foss-gis-suite/attachments/20091109/02ae628a/attachment.htm
More information about the Foss-gis-suite
mailing list