[Please keep this thread on the mailing list for others to profit of it.]

On 23/09/08 18:08, Kris Nackaerts wrote:
As Glynn mentioned, you can set them by hand. See
http://grass.osgeo.org/wiki/GRASS_and_Shell for some instructions.


Hmmm, I cannot get such a simple thing to work. I set plenty of
parameters, mainly a copy of the standard .bat file, but g.version for
example keeps returning nothing:

As Glynn said:

> The main ones are:
>
> PATH - must include %GISBASE%/bin and %GISBASE%/lib
> GISBASE - the directory where GRASS is installed.
> GISRC - the pathname of a grassrc file
> GRASS_SH - the path to a Unix-compatible Bourne shell (only required
> if you need to run shell scripts)

Both of GISBASE and GISRC also have a WIN* version, but AFAIK, they also need to be set as such (i.e. without the WIN*).

Also, what does %HOME%\.grassrc6 contain ?


Moritz

set GRASSDIR=D:\GRASS
set HOME=%USERPROFILE%
set GRASS_WISH=wish.exe
set GRASS_SH=%GRASSDIR%\msys\bin\sh.exe
set PATH=%GRASSDIR%\msys\bin;%PATH%
set PATH=%GRASSDIR%\extrabin;%GRASSDIR%\extralib;%PATH%
set PATH=%GRASSDIR%\tcl-tk\bin;%GRASSDIR%\sqlite\bin;%GRASSDIR%\gpsbabel;%PATH%
set GRASS_PROJSHARE=%GRASSDIR%\proj
set WINGISBASE=%GRASSDIR%

set GRASS_RENDER_IMMEDIATE=FALSE
set GRASS_WIDTH=400
set GRASS_TRUECOLOR=TRUE
set GRASS_PNGFILE=test.png
set GRASS_BACKGROUNDCOLOR=001100
set GRASS_PNG_AUTO_WRITE=TRUE
set GRASS_PNG_READ=FALSE
set GRASS_DEBUG__FILE=d:\grass.log
set SAVEPATH=%PATH%
if "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\bin;%WINGISBASE%\lib;%PATH%
if not "%GRASS_ADDON_PATH%"=="" set 
PATH=%WINGISBASE%\bin;%WINGISBASE%\lib;%GRASS_ADDON_PATH%;%PATH%
set GRASS_VERSION=6.3.0
if "%HOME%"=="" set HOME=%USERPROFILE%
set WINGISRC=%HOME%\.grassrc6
set GRASS_PAGER=more
set GRASS_PROJSHARE=/usr/local/share/proj
set GRASS_UI_TERM=1
g.version

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to