<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-3" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ted Nebitko wrote:
<blockquote cite="mid:001701c7e181$eb3f6660$33466395@VALUED976296A0"
 type="cite">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <meta content="MSHTML 6.00.6000.16525" name="GENERATOR">
  <style></style>
  <div>Native winGRASS 6.3.cvs (wingrass63_cvs20070801, 01-Aug-2007).</div>
  <div> </div>
  <div><font face="Arial" size="2">I get the following error in the
start-up script after pressing "enter grass" on placing location and
mapset numbers in the opening gui (using grass63.bat)</font></div>
  <div> </div>
  <div>
  <div><font face="Arial" size="2">ERROR: program 'g.gisenv' cannot be
executed because: Neither a command line (cmd) or interactive (inter)
version was found.</font></div>
  <div><font face="Arial" size="2">mail: not found while executing
"exec g-gisenv get=GISDBASE" invoked from within</font></div>
  <div><font face="Arial" size="2">"set env(GISDBASE) [exec g.gisenv
get=GISDBASE]"</font></div>
  <div><font face="Arial" size="2">(file
"d:/grass/grass-6.3.cvs\etc\gm\gm.tcl" line31)</font></div>
  <div> </div>
  <div><font face="Arial" size="2">Were you able to start this native
wingrass version without problems?</font></div>
  </div>
</blockquote>
<br>
Yes Ted,<br>
<br>
It worked fine for me.<br>
<br>
I noticed that you have the grass folder in D:\. The only thing I can
think of is the advice included in the README file
<a class="moz-txt-link-freetext" href="http://moritz.homelinux.org/grass/wingrass/README">http://moritz.homelinux.org/grass/wingrass/README</a>, which says "You
might want to uncomment and adapt some of the environment variables in
grass/bin/grass63.bat, notably WINGISBASE if you did not unzip the
package it in C:\". But off course you already took care of that.<br>
<br>
Regards,<br>
<br>
Luigi<br>
<br>
<br>
<blockquote cite="mid:001701c7e181$eb3f6660$33466395@VALUED976296A0"
 type="cite">
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a moz-do-not-send="true" title="lponti@infinito.it"
 href="mailto:lponti@infinito.it">Luigi Ponti</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a moz-do-not-send="true" title="grassuser@grass.itc.it"
 href="mailto:grassuser@grass.itc.it">grassuser@grass.itc.it</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
    <a moz-do-not-send="true" title="wingrass@grass.itc.it"
 href="mailto:wingrass@grass.itc.it">wingrass@grass.itc.it</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Thursday, August 16, 2007 11:19 AM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[GRASS-user] winGRASS 6.2.2 and 6.3.cvs</div>
    <div><br>
    </div>
Dear list,<br>
    <br>
On my MS Window XP machine, I have:<br>
- Cygwin GRASS 6.1.cvs (last Huidae Cho's version);<br>
- Cygwin GRASS 6.2.2-1 (18-Jul-2007);<br>
- Native winGRASS 6.3.cvs (wingrass63_cvs20070801, 01-Aug-2007).<br>
    <br>
Some observations:<br>
    <br>
The three do not interfere with each other, except for the native
winGRASS 6.3.cvs that needs to reset GISDBASE: in ~/.grassrc6 to an
absolute path at startup (c:\cygwin\home\$USER\ as opposed to
\home\$USER\ which is enough for Cygwin): next time you use a Cygwin
version, it complains that it does not find the database folder (and
vice versa when you use start the native version after a Cygwin/GRASS
session). I understand one is very likely to survive this
inconvenience, but is there a way around it?<br>
    <br>
If I use the cygwin_grass.bat script to start GRASS 6.2.2-1 as
described at <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://grass.itc.it/grass62/binary/mswindows/#icon">&lt;http://grass.itc.it/grass62/binary/mswindows/#icon&gt;</a>,
I receive the error message:<br>
    <blockquote>Application initialization failed: this isn't a Tk
applicationcouldn't connect to display "127.0.0.1:0.0"<br>
Error in startup script: dynamic loading is not currently available on
this system<br>
    while executing<br>
"load /usr/local/lib/tk8.4/../libtk8.4.a Tk"<br>
    ("package ifneeded" script)<br>
    invoked from within<br>
"package require Tk 8.0"<br>
    ("package ifneeded" script)<br>
    invoked from within<br>
"package require -exact BWidget 1.2.1"<br>
    (file "/usr/local/grass-6.2.2/etc/gtcltk/options.tcl" line 15)<br>
    invoked from within<br>
"source $env(GISBASE)/etc/gtcltk/options.tcl"<br>
    (file "/usr/local/grass-6.2.2/etc/gis_set.tcl" line 29)<br>
Application initialization failed: this isn't a Tk applicationcouldn't
connect to display "127.0.0.1:0.0"<br>
Error in startup script: dynamic loading is not currently available on
this system<br>
    while executing<br>
"load /usr/local/lib/tk8.4/../libtk8.4.a Tk"<br>
    ("package ifneeded" script)<br>
    invoked from within<br>
"package require Tk 8.0"<br>
    ("package ifneeded" script)<br>
    invoked from within<br>
"package require -exact BWidget 1.2.1"<br>
    (file "/usr/local/grass-6.2.2/etc/gm/gm.tcl" line 24)<br>
    </blockquote>
However, if I use a modified grass.bat script (the one that starts
GRASS 6.1.cvs, only with grass62 instead of grass61 in the "run xterm
..." line) everything works fine.The cygwin_grass.bat script only works
if there is an Cygwin/X Server already running from a previous
Cygwin/GRASS session (the Cygwin/X Server stays on after exiting GRASS
-- you have to manually shut it down). It sounds like grass62 starts
before startx has finished, but this is just my impression. Is there a
known fix to this? I have found no answer in email archives.<br>
    <br>
Last thing: I have tried to run a shell script on the native winGRASS
6.3.cvs (by typing the script name at the bottom box of "Output -
GIS.m" window and then pressing the different "run" buttons) but it
always fails (the script works fine on Cygwin/GRASS versions) saying:<br>
- nothing if I press "Run";<br>
- nothing if I press "Run (Background)";<br>
- error message if I press "Run UI":<br>
    <blockquote>couldn't execute "ita.sh": no such file or directory<br>
couldn't execute "ita.sh": no such file or directory<br>
    while executing<br>
"exec -- $program --tcltk"<br>
    (procedure "run_ui" line 6)<br>
    invoked from within<br>
"run_ui [string trim [.gronsole.win.text get 1.0 end]]"<br>
    invoked from within<br>
".gronsole.command.runui invoke"<br>
    ("uplevel" body line 1)<br>
    invoked from within<br>
"uplevel #0 [list $w invoke]"<br>
    (procedure "tk::ButtonUp" line 24)<br>
    invoked from within<br>
"tk::ButtonUp .gronsole.command.runui<br>
"<br>
    (command bound to event)<br>
    </blockquote>
- if I press "Run in Xterm", a Windows command prompt flashes briefly
and then disappears.<br>
At first I thought it was a matter of end of line characters, since I
noticed that the shell scripts of the native 6.3.cvs version included
in the "scripts" folder had CR/LF end of line (and they seem to work if
invoked in the way I described above for my own script), while the
Cygwin version of the same scripts had LF end of line. But after
converting end of lines to CR/LF, I get the same results as described
above when I tried to run the script. Any hints on how try running
homemade scripts on native winGRASS?<br>
    <br>
Thanks and regards,<br>
    <br>
Luigi<br>
    <br>
    <blockquote><br>
    </blockquote>
    <p> </p>
    <hr> _______________________________________________<br>
grassuser mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:grassuser@grass.itc.it">grassuser@grass.itc.it</a><br>
<a class="moz-txt-link-freetext" href="http://grass.itc.it/mailman/listinfo/grassuser">http://grass.itc.it/mailman/listinfo/grassuser</a><br>
  </blockquote>
</blockquote>
<br>
</body>
</html>