<HTML>
<HEAD>
<TITLE>FW: [GRASS-user] GRASS for windows script solution</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Moritz,<BR>
<BR>
Here is more information on GRASS for Windows and NVIZ from Isaac. We still can&#8217;t get NVIZ to launch if GRASS is started from the grass.bat file. Given that it DOES work fine if launched from within MySys, it seems that this must be some kind of path issue that is potentially solvable.<BR>
<BR>
Also, I think we need to make MySys a dependency of GRASS for Windows. There is just too much lost by not having access to the scripts&#8212;including the nviz script. Users without MySys will perceive GRASS as partly non-functional. This is not a problem license-wise is it?<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology <BR>
Director of Graduate Studies<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics and Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>------ Forwarded Message<BR>
<B>From: </B>Isaac Ullah &lt;isaac.ullah@asu.edu&gt;<BR>
<B>Date: </B>Mon, 3 Dec 2007 11:44:20 -0700<BR>
<B>To: </B>Michael Barton &lt;michael.barton@asu.edu&gt;<BR>
<B>Subject: </B>Re: FW: [GRASS-user] GRASS for windows script solution<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I tried both of these solutions, and neither resulted in success (ie. NVIS still does not launch!) So far, the only solution that works for me is to move the grass install directory into the c:\mysys\1.0 directory, edit the &quot;grass63&quot; shell script so that the GISBASE is now set to &quot;/c/msys/1.0/grass63RC2/grass- 6.3.0RC2&quot;, and then start grass by invoking that script at the command prompt in the mysys shell. If the grass directory is not installed in the mysys root directory, (ie. it's just in c:\) then mysys can find it since I can't cd in the mysys terminal below the mysys root folder &quot;c/mysys/1.0/&quot; <BR>
<BR>
Cheers,<BR>
<BR>
Isaac<BR>
<BR>
On 11/29/07, <B>Michael Barton</B> &lt;michael.barton@asu.edu&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Did you try the solution listed below?<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
Director of Graduate Studies<BR>
School of Human Evolution &amp; Social Change <BR>
Center for Social Dynamics and Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a><BR>
<BR>
------ Forwarded Message<BR>
&gt; From: Moritz Lennert &lt;mlennert@club.worldonline.be&gt;<BR>
&gt; Date: Wed, 28 Nov 2007 11:38:31 +0100<BR>
&gt; To: francesco &lt; francesco.pirotti@unipd.it <a href="mailto:francesco.pirotti@unipd.it">&lt;mailto:francesco.pirotti@unipd.it&gt;</a> &gt;<BR>
&gt; Cc: &lt;grass-user@lists.osgeo.org&gt;<BR>
&gt; Subject: Re: [GRASS-user] GRASS for windows script solution<BR>
&gt;<BR>
&gt; On 28/11/07 11:01, francesco wrote: <BR>
&gt;&gt; Hello,<BR>
&gt;&gt;<BR>
&gt;&gt; For all fearless Wingrass users, &nbsp;I would like to share a solution for<BR>
&gt;&gt; the following bug &nbsp;....&quot;many shell scripts do not work, even if you<BR>
&gt;&gt; enable correctly msys and include LIB and BIN paths in the PATH windows <BR>
&gt;&gt; variable............&quot; (from the readme file at the wingrass webpage).<BR>
&gt;&gt;<BR>
&gt;&gt; PROBLEM - Long story short, g.mlist gave me errors because it did not<BR>
&gt;&gt; fine &quot;sed&quot; and other executables, therefore scripts like g.mlist and<BR>
&gt;&gt; g.mremove do not work<BR>
&gt;&gt; SOLUTION -<BR>
&gt;&gt; &nbsp;&nbsp;&nbsp;1 - open the &quot;Init.bat&quot; file located in the<BR>
&gt;&gt; &quot;&lt;grassinstallationdirectory&gt;/grass-6.3.xxx/*etc*&quot; ... do not use <BR>
&gt;&gt; notepad but a better editor that recognizes unix formatted text<BR>
&gt;&gt; &nbsp;&nbsp;&nbsp;2 - add the line below *after* the &nbsp;&nbsp;..........if not<BR>
&gt;&gt; &quot;%GRASS_ADDON_PATH%&quot;==...................... line (should be line 29) <BR>
&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set PATH=/c/msys/1.0/bin;%PATH%<BR>
&gt;&gt; &nbsp;&nbsp;&nbsp;3 - of course /c/msys/1.0/bin is the path to the bin directory of<BR>
&gt;&gt; msys, if yours is different, adapt.<BR>
&gt;&gt; &nbsp;&nbsp;&nbsp;4 - start grass and try. <BR>
&gt;<BR>
&gt; As mentioned int he README: &quot;in order for shell scripts to work, you<BR>
&gt; will have to add msys' lib and bin directories to your path in the<BR>
&gt; grass63.bat file.&quot;<BR>
&gt;<BR>
&gt; So, no need to fiddle with Init.bat, just add it in grass63.bat:<BR>
&gt;<BR>
&gt; set PATH=%PATH+;c:\msys\1.0\bin;c:\msys\1.0\lib<BR>
&gt;<BR>
&gt; The information used to be in the .bat file, but we decided to take it<BR>
&gt; out in the effort of making wingrass independent of msys. But seeing the <BR>
&gt; many reactions on this, I think I will add it again.<BR>
&gt;<BR>
&gt; Moritz<BR>
&gt;<BR>
&gt;<BR>
<BR>
------ End of Forwarded Message<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
<BR>
-- <BR>
<BR>
Isaac I Ullah, M.A.<BR>
<BR>
Archaeology PhD Student,<BR>
ASU School of Evolution and Social Change<BR>
<BR>
Research Assistant,<BR>
Mediterranean Landscape Dynamics Project<BR>
***************************************************<BR>
isaac.ullah@asu.edu<BR>
ullah@archaeologist.com<BR>
<BR>
<a href="http://www.public.asu.edu/~iullah">http://www.public.asu.edu/~iullah</a><BR>
***************************************************<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
------ End of Forwarded Message<BR>
</SPAN></FONT>
</BODY>
</HTML>