<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, I get the warning messages reported below. It seems that tcltk
doesn't work correctly....(but I can see the grass GIS manager, map
display and output windows...). As you can see the scipts run only in
text mode...<br>
Mirko<br>
<br>
<small>mirko.baruffini@ISTPC29 /<br>
$ /c/grass63RC4/bin/grass63<br>
Cleaning up temporary files.....<br>
Starting GRASS ...<br>
GISDBASE='W:/grassdb';<br>
LOCATION_NAME='Ticino';<br>
MAPSET='Mirko';<br>
WARNING: Attention!<br>
WARNING: Locking is not supported on Windows!<br>
GRASS GUI should be tcltk<br>
__________ ___ __________ _______________<br>
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/<br>
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ <br>
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ / <br>
\____/_/ |_/_/ |_/____/____/ \____/___//____/ <br>
<br>
Welcome to GRASS 6.3.0RC4 (2008) <br>
GRASS homepage: <a class="moz-txt-link-freetext" href="http://grass.osgeo.org/">http://grass.osgeo.org/</a><br>
This version running thru: Bourne Shell (/bin/sh)<br>
Help is available with the command: g.manual -i<br>
See the licence terms with: g.version -c<br>
If required, restart the graphical user interface with: gis.m<br>
When ready to quit enter: exit<br>
<br>
GRASS 6.3.0RC4 (Ticino):C:/msys/1.0 > cd ../<br>
GRASS 6.3.0RC4 (Ticino):C:/msys > cd ../<br>
GRASS 6.3.0RC4 (Ticino):C: > v.la<br>
v.label.exe v.layer.analysis.py~ <br>
v.layer.analysis.py v.layer.analysis.sh <br>
GRASS 6.3.0RC4 (Ticino):C: > v.layer.analysis.sh<br>
<br>
ERROR: Required parameter <map> not set:<br>
(Vector map).<br>
<br>
ERROR: Required parameter <column_tab> not set:<br>
(Name of the column tab).<br>
<br>
ERROR: Required parameter <column> not set:<br>
(Name of the column).<br>
<br>
Description:<br>
Select a column to be analyzed<br>
<br>
Keywords:<br>
vector, database, attribute table<br>
<br>
Usage:<br>
v.layer.analysis.sh map=name [layer=value] column_tab=string<br>
column=string [--verbose] [--quiet]<br>
<br>
Flags:<br>
--v Verbose module output<br>
--q Quiet module output<br>
<br>
Parameters:<br>
map Vector map<br>
layer Layer<br>
default: 1<br>
column_tab Name of the column tab<br>
column Name of the column<br>
GRASS 6.3.0RC4 (Ticino):C: > </small><br>
<br>
<br>
<br>
Moritz Lennert ha scritto:
<blockquote cite="mid:47B0A17D.8070401@club.worldonline.be" type="cite">On
11/02/08 16:39, Mirko Baruffini wrote:
<br>
<blockquote type="cite"><br>
Thank you Moritz!
<br>
Now it works! I have modified the file bin/grass63 as you told me. But
the scipts run only in text mode....
<br>
Can I also run them with a GUI?
<br>
Can you help me?
<br>
</blockquote>
<br>
What does not work in the GUI ? Do you get error messages ?
<br>
<br>
Moritz
<br>
<br>
<blockquote type="cite"><br>
Mirko
<br>
<br>
<br>
Moritz Lennert ha scritto:
<br>
<blockquote type="cite">On 08/02/08 22:11, Glynn Clements wrote:
<br>
<blockquote type="cite">Mirko Baruffini wrote:
<br>
<br>
<blockquote type="cite">I' m using wingrass grass63RC4. The use
is ok, but, when I launch grass63.bat, it does not load the shell msys
(I have uncommented and adapted some of the environment variables in
grass/bin/grass63.bat).
<br>
<br>
So i decided to launch a script with native wingrass launching grass
from within the msys shell.
<br>
When I type /c/grass/bin/grass63 it does not load grass. On the sceen I
can read:
<br>
<br>
mirko.baruffini@ISTPC29 /
<br>
$ /c/grass63RC4/bin/grass63
<br>
/c/grass63RC4/grass-6.3.0RC4/etc/Init.sh: uname: command not found
<br>
/c/grass63RC4/grass-6.3.0RC4/etc/Init.sh: uname: command not found
<br>
/c/grass63RC4/grass-6.3.0RC4/etc/Init.sh: mkdir: command not found
<br>
Cannot create temporary directory! Exiting.
<br>
<br>
But the command uname exists:
<br>
<br>
mirko.baruffini@ISTPC29 /
<br>
$ uname
<br>
MINGW32_NT-5.1
<br>
<br>
What could I do?
<br>
</blockquote>
<br>
AFAIK, starting GRASS or running GRASS commands from the MSys shell is
<br>
unsupported under Windows.
<br>
</blockquote>
<br>
No, it should work. I cannot reproduce the above error messages.
However, to make the current 63RC4 package work, you have to change the
bin/grass63 file from
<br>
<br>
GISBASE=c:/grass63RC4/grass-6.3.0RC4
<br>
<br>
to
<br>
<br>
GISBASE=/c/grass63RC4/grass-6.3.0RC4
<br>
<br>
Then it works well for me (not everything tested, though).
<br>
<br>
<blockquote type="cite">Unfortunately, MSys shell provides an
environment which is somewhere
<br>
between Unix and Windows, and not entirely compatible with either. In
<br>
particular, any pathnames which GRASS sees will need to be compatible
<br>
with Windows, e.g. C:\path\to\file or C:/path/to/file rather than
<br>
MSys' /c/path/to/file convention.
<br>
</blockquote>
<br>
Well, actually, as you can see above, for launching grass you need the
msys style.
<br>
<br>
<blockquote type="cite">The focus of WinGRASS is to produce a
*native* Windows version. Unless
<br>
you're building WinGRASS yourself, you shouldn't need MSys for
<br>
anything other than running shell scripts.
<br>
</blockquote>
<br>
And even then, I guess other shells would also do the trick, such as
Gnuwin32's shell and tools such as awk and sed. Msys is more convenient
as the default installation contains these tools.
<br>
<br>
Moritz
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
grass-windows mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:grass-windows@lists.osgeo.org">grass-windows@lists.osgeo.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-windows">http://lists.osgeo.org/mailman/listinfo/grass-windows</a>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</body>
</html>