Hi Norm,<br><br>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?<br><br>Regards,<br>Hao<br><br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 3:45 PM, Normand Savard <span dir="ltr"><<a href="mailto:nsavard@mapgears.com">nsavard@mapgears.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Hao Zhang wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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:<br>
<br>
[... ...]<br>
+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.SCxSFA...ok<br>
+ Running base's installer<br>
+ module : base<br>
+ Running fgs install mapserver-base<br>
* Probing last version of module 'mapserver-base'...<br>
<br>
! Cannot find a mapserver-base module from /tmp/fgs-selfextract.SCxSFA<br>
<br>
! Fatal error, please contact FGS team.<br>
<br>
</blockquote></div>
Hao,<br>
<br>
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.<br>
<br>
Norm<br>
<br>
get_last_module_version ()<br>
{<br>
local FILES_SRC=$1<br>
local MODULE_NAME=$2<br>
<br>
# uname -i doesn't return the same things depending on the linux distributi\<br>
on... <br>
#local CPU=`uname -i` #[ $CPU = 'GenuineIntel' ] && CPU='i386' local CPU='i386'<br>
local FGS_PLATFORM="`uname -s | tr [A-Z] [a-z]`-$CPU"<br>
<br>
if [ `echo $FILES_SRC | grep -c 'http://'` -eq 1 ] ; then<br>
return 1<br>
# not yet implemented <br>
is_wget_installed<br>
local list_modules="$FGS_HOME/tmp/list_modules.$$.tmp"<br>
wget -q $FILES_SRC/ -O - 1> $list_modules 2>/dev/null<br>
if [ "$?" -ne 0 ] ; then<br>
rm -f $list_modules<br>
fatal_error "Cannot download '$FILES_SRC/$FILE_NAME', aborting..."<br>
fi<br>
else<br>
## From path (cdrom, dvd, etc...) [ -d $FILES_SRC ] || fatal_error "Unable to find directory '$FILES_SRC'\<br>
, aborting..."<br>
cd $FILES_SRC<br>
fgs_package=`ls -1 fgs-$MODULE_NAME-*-$FGS_PLATFORM.tar.gz 2>/dev/null \<br>
| tail -n 1`<br>
<br>
>>>>>>>echo $fgs_package<br>
<br>
leftsubstring=fgs-${MODULE_NAME}-<br>
resultingstring=${fgs_package#$leftsubstring}<br>
rightsubstring=-${FGS_PLATFORM}.tar.gz<br>
finalstring=${resultingstring%$rightsubstring}<br>
echo $finalstring<br>
[ $? -ne 0 ] && fatal_error "Unable to find module for '$MODULE_NAME' i\<br>
n $FILES_SRC"<br>
fi<br>
return 0<br>
}<br>
<br>
<br>
</blockquote></div><br>