[FGS] Starting apache error: httpd cannot execute binary file
Normand Savard
nsavard at mapgears.com
Fri Nov 6 09:45:18 EST 2009
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
}
More information about the Foss-gis-suite
mailing list