This UNIX oriented GRASS 6.3 for Windows version requires the Free Cygwin UNIX compatibility software. Alternatively, there is a native WinGRASS available.
Due to the Cygwin dependency GRASS 6.3 can not be installed directly.
Fortunately the Cygwin setup program is fairly easy to use, and both
it and GRASS can be installed by following a few simple instructions.
For installation of Cygwin, see http://geni.ath.cx/grass.html#_Cygwin_setup_package. The instructions given there can be used with slight modification.
To start GRASS, double-click on the Cygwin icon and run "startx" at the command prompt. This will start X-Windows and open a new xterm window. At the xterm prompt type "grass63".
To start GRASS from an icon on the Desktop, see below.
In case of problems see the troubleshooting section
$ cd ~ $ mkdir grassdata/ $ cd grassdata/ $ tar xzf ~/spearfish_grass60data-0.3.tar.gz
edit c:\cygwin\cygwin_grass.bat so it looks like this:
(add "set GRASS_AUTOSTART=1" and "-c startx")
@echo off C: chdir C:\cygwin\bin set GRASS_AUTOSTART=1 bash --login -i -c startx
Next in your cygwin home dir add this to the end of ~/.bashrc :
################# # Start GRASS if [ -n "$DISPLAY" ] && [ -n "$GRASS_AUTOSTART" ] ; then unset GRASS_AUTOSTART exec grass63 fi #################
Finally make a shortcut from cygwin_grass.bat to the Desktop.
Download the GRASS icon and select it by right-clicking on the desktop shortcut and in "Preferences" click on Change Icon and Browse.
If the GRASS mapset selection startup screen doesn't load at all, you can attempt to bypass it by giving the path to the mapset directly on the command line. For example:
From outside of GRASS you can run cygcheck to check for missing DLL libraries by first changing to GRASS's library directory:
cd /usr/local/grass-6.3.0/lib cygcheck ../bin/g.region
The winGRASS package is just a .tar.bz2 file. It can be extracted into Cygwin's root directory (or use setup.ini as explained in above external notes), e.g.:
$ cd / $ tar xjf /path/to/grass-6.3.0-2.cygwin.tar.bz2
Regarding external dependencies: the only dependencies which aren't
provided by Cygwin are GDAL and Tcl/Tk. They can be downloaded
above and they have to be extracted into Cygwin's root directory
as well (or use setup.ini as explained in above
Last changed: $Date: 2008-01-17 04:55:17 +0100 (Thu, 17 Jan 2008) $