Subject: Re: [GRASS5] compiling beta10 on IRIX and CYGWIN/WIN32

Malcolm Blue mblue at nb.sympatico.ca
Thu Dec 14 18:01:01 EST 2000



Justin Hickey wrote:

> > >> > CYGWIN:
> > >> > grass5
> > >> > /usr/local/grass5/etc/Init.sh: not found
> > > >> does not start with and without any commandline flag (-text,
> > > >> -tcltk
> >
> > >> > etc.)
> > >> > COMPLETELY BROKEN NOW!
> > >> Hi Justin! :-) Seems to be a problem in src/general/init/Gmakefile.
> > >
> > >I need more information for this.  /usr/local/grass5/etc/Init.sh
> > >seems
> > >to be the correct path (at least for Unix). What should it be for
> > >CYGWIN?
> >
> > This looks like a problem that I had.  I copied /bin/bash.exe to
> > /bin/sh.exe and it worked fine.  I think it was ash from the
> > installation.
>
> Does this mean that CYGWIN does not have a sh program but a bash one
> instead? Should we put "if CYGWIN copy /bin/bash.exe to /bin/sh.exe"
> code in the Makefile or somewhere? Just an idea.
>

It might be better to test which shell is being used and tell the user
that Init.sh (and grass5) won't run with the ash shell - which I think
is what is used for the default sh.exe program in the cygwin setup. This
information should also be added to the INSTALL file and to the Cygwin
instructions.  A lot of people prefer the borne shell anyway.  Since
other shells may be available (csh, ksh, etc.) now or in the future it
is probably best to avoid making changes to a users setup.

With bash linked to, or copied to, /bin/sh , "sh --version" returns:

GNU bash, version 2.04.0(8)-release (i686-pc-cygwin)
Copyright 1999 Free Software Foundation, Inc.

Ash doesn't recognize this option and returns "Illegal option --".  I
don't know how to get version information from it.

Hope this helps,

Malcolm


---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list