[GRASSLIST:5556] Re: cygwin installation
Glynn Clements
glynn.clements at virgin.net
Fri Feb 14 16:02:38 EST 2003
Miha STAUT wrote:
> What was wrong in this installation on Windows XP with Cygwin on it?
> What does this mean:
> $ sh grass5_i686-pc-cygwin_install.sh
> grass5.0.0pre3_i686-pc-cygwin_bin.tar.gz
>
> GRASS GIS 5 binary package installation tool
>
> [: None: bad number
> Using gunzip decompressor...
The problem is most likely because the expression:
SIZE=`ls -l $PACKAGE_NAME | tr -s " " | cut -d" " -f5`
results in SIZE being set to "None". If so, the message will be
generated by the command:
if [ $SIZE -ne $TAR_FILE_SIZE ] ; then
as the value before "-ne" must be a number, but "None" isn't a valid
number.
As for exactly why the error occurs, I suspect that one of the Cygwin
tools (probably "ls") isn't generating output in the format which the
script is assuming.
Incidentally, pre3 is quite old; a lot has been fixed since then.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list