SG3d

Rebecca Scheckler rebecca at vt.edu
Tue Aug 16 08:14:06 EDT 1994


>>
>>
>> Hello,
>>
>> I am trying to run SG3d.  I get the following error and SG3d will
>> not run.
>>
>> ERROR: GISRC - variable not set
>>
>> Can anyone tell me what this GISRC variable is?  Thanks.
>>
>> -Stephen Dzurenko
>
>$GISRC is set when you start up GRASS; the variable $GISRC is a file in
>your home-directory where information concerning your GRASS setup is
>stored. It's usually called $home/.grassrc and contains indispensable
>information like the GISDBASE, LOCATION_NAME and MAPSET variables that
>GRASS needs in order to find your maps. I seem to remember a discussion
>on this list a long, long time ago about starting GRASS programs outside
>the GRASS-shell; maybe there's someone with a fresher memory than mine
>that can tell us more about that.
The last GrassClippings has this information provided by W. Frederick Limp
and Malcom Williamson.
"1. set the following environmental variables:
GISRC(should be your_home_dir_path/.grassrc)
GISBASE (where the GRASS bin, etc, and scripts directories are found)
GIS_LOCK (usually set to the processid of the start up shell script: I
would use the pid of the current shell)
GISDBASE (the database entry on the GRASS start up page )
LOCATION (the Database and the location of the mapset)
MAPSET (just the mapset name)

Add the following paths to your PATH:
$GISBASE/bin
$GISBASE/scripts
$GISBASE/garden/bin

If these are set you can type any GRASS caommand and it should execute."
I have done this in a shell script and it has worked without any problems.

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
  Rebecca Scheckler                        rebecca at vt.edu(internet)
  Senior Programmer/Analyst                rebeccas at vtvm1(bitnet)
  Information Systems and Insect Studies   fax: 703-231-9131
  Virginia Tech                            phone: 703-231-7216
  Blacksburg, VA 24061-0319
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*





More information about the grass-user mailing list