[GRASSLIST:1681] Re: GRASS Cygwin Binary Installation problems.
Malcolm Blue
mblue at nb.sympatico.ca
Wed Mar 28 19:06:49 EST 2001
Howard,
I see that Andreas has replied, but as he is busy perhaps I can help.
Note that Andreas is preparing a revised binary version, which he is
setting up to pretty much start up everything needed. Hopefully this
will be ready in a few days.
I sounds like you are doing everything right, but there may be a missing
executable or its not executing properly. Check to see if there is a
file called /usr/local/grass5/etc/bin/cmd/g.gisenv . I can duplicate
your problem by moving this executable to another name.
If this program doesn't exist, then this is your problem. I would
suggest that you might want to wait a couple of days for Andreas'
revised version and his revised instructions (actually only minor
install instruction changes - but as I said above, he has informed us
that the startup will be made easier).
If the program does exist, you can check it from a cygwin shell. Test
it as follows:
Check to see if $HOME/.grassrc5 exists by typing 'ls -a $HOME' . If
this shows that .grassrc5 exists (it should exist because Init.sh exited
after the place it creates this), then do:
export GISBASE=/usr/local/grass5
export GISRC=$HOME/.grassrc5
/usr/local/grass5/etc/bin/cmd/g.gisenv
This should tell you what the variables GISDBASE, LOCATION_NAME and
MAPSET are defined as. If you get anything different let us know.
Malcolm
Howard Tan wrote:
> Sorry I didn't reply earlier, I've been out of town.
>
> Thank you, Andreas and Markus for the additional text.
>
> But I still get the same error.
>
> I've deleted my cygwin directory. Download all the latest binaries that I
> can find (as of 3/27/01). I ran the setup command to grab all the latest
> cygwin files. I made sure I installed everything for a single user and in
> UNIX text mode. I moved all the archived files I have (.bz2, .zip. etc) to
> the root directory in cygwin, which resides on my d: partition with 17 gigs
> ('d:\cygwin'). Unpacked everything in the console window using the bunzip2,
> unzip, and un-tarred from the root dir. Followed the instructions from
> http://www.geog.uni-hannover.de/grass/grass5/binary/windows_cygnus/cygwin_gr
> ass50bininstall.html. Everything seemed to install just fine. Xwindows
> server works for both the Xserver that can install from cygwin (4.0.3), and
> ReflectionX (6.10 built in 1997). I download the global dataset into my
> directory (d:\cygwin\home\data) and I opened a cygwin console and tar-xzf
> it from ('/home/data').
>
> I got grass work as far as this. -->
>
> ---------------------------------------
> - GRASS 5.0beta12
> -
> -LOCATION: This is the name of an available geographic
> ocation. -spearfish-
> - is the sample data base for which all tutorials are written.
> -
> -MAPSET: Every GRASS session runs under the name of a MAPSET. Associated
> - with each MAPSET is a rectangular COORDINATE REGION and a list
> - of any new maps created.
> -
> -DATABASE: This is the unix directory containing the geographic databases
> -
> - The REGION defaults to the entire area of the chosen LOCATION.
> - You may change it later with the command: g.region
> -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> -LOCATION: global________ (enter list for a list of locations)
> -MAPSET: PERMANENT_____ (or mapsets within a location)
> -
> -DATABASE: /home/data________________________________________
> -
> - AFTER COMPLETING ALL ANSWERS, HIT <ESC><ENTER> TO CONTINUE
> - (OR <Ctrl-C> TO CANCEL)
> ------------------------------------------------
>
> Sad to say, I got the same error, everytime I ran grass5.
>
> I opened a cygwin shell. I started 'grass5 -text' (what does that do?). And
> I get the same error.
> I opened startxwin.bat in explorer. The Xwindow server opened in full
> screen. I started StartGrass. It opened a new window, and I did everything
> the same error.
> I even get the same error with ReflectionX.
>
> I did not get and install the ipc-daemon, because I read somewhere it wasn't
> necessary anymore. Did I mis read it? I have not tried to install the
> sunrpc/xdrlib. They were not detailed in the instructions to install the
> binaries. Should I? I should try to compile it myself, but I don't mind
> being a Guinea pig to get the binaries to work. and they should work...
>
> It's probably something very simple. But I just don't know what it is.
>
> Any suggestions would be great!
>
> Thanks,
> Howard
>
>
> ----- Original Message -----
> From: "Andreas Lange" <Andreas.Lange at Rhein-Main.de>
> To: "Howard Tan" <Howard.L.Tan at jpl.nasa.gov>
> Cc: <grasslist at baylor.edu>
> Sent: Tuesday, March 20, 2001 4:40 AM
> Subject: Re: [GRASSLIST:1617] GRASS Cygwin Binary Installation problems.
>
>
>> Hi Howard,
>>
>> how do you start the grass shell?
>> I will assume that your installation is ok, so you should log into
>> cygwin shell and start grass5 -text there. Try to choose a database
>> there. Does this work?
>> You will need to start grass from within an cygwin shell, so if you use
>> a X Server you have to start the xterm from within cygwin and to log in
>> to grass from there.
>>
>> My setup is: Win NT 4.0/Win 2000, cygwin, XFree from cygwin. I can start
>> the X Server from explorer, log into grass within xterm and fire up
>> d.mon start=x0 etc.
>>
>> HTH,
>>
>> Andreas
>>
>> Howard Tan schrieb:
>>
>>> Hello,
>>>
>>> I've been trying to get GRASS to work on my NT boxes (NT4.0-sp6 and
>>
> 2k-sp1).
>
>>> I can start GRASS, but it keeps dropping out with the following error:
>>>
>>> ERROR:
>>> ERROR: program 'g.gisenv' cannot be executed because:
>>>
>>> Neither a command line (cmd) or interactive (inter) version was
>>
> found
>
>>> /usr/local/grass5/etc/Init.sh: GISDBASE: parameter not set
>>>
>>> I've downloaded all the neccassary files from Cygwin including the
>>
> XFree86
>
>>> drivers (current as of 3/15), and I'm using ReflectionX (similar to
>>
> XWin32)
>
>>> for my X Server. I've downloaded and installed the IPC binary
>>> files(v1.09-2). Then I've installed the GRASS binaries (20010312). I can
>>
> run
>
>>> 'StartGrass' successfully, it's starts up another window and then I can
>>> enter 'grass5' into the new window. Grass starts up, and I enter the
>>> LOCATION, MAPSET, and DATABASE. I've downloaded the Seeds Tutorial Set
>>
> from
>
>>> the grass website, and follow the tutorial. Then when I hit
>>
> [ESC][ENTER],
>
>>> GRASS coughs out with the error above.
>>>
>>> I get the same error on both win nt 4.0 and win 2000.
>>>
>>> Anybody have any suggestions?
>>>
>>> Thanks,
>>>
>>> Howard Tan
>>
>> --
>> Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
>> Andreas.Lange at Rhein-Main.de - A.C.Lange at GMX.net
>>
More information about the grass-user
mailing list