I installed the package Version: 6.4.0~rc6-1~gfossit50+1
on debian lenny (Linux version 2.6.26-2-amd64 (Debian 2.6.26-21lenny4)
(dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian
4.1.2-25)) #1 SMP Tue Mar 9 22:29:
32 UTC 2010).
When I start grass and select my location (which was created by a
previous version of grass 6.4. - RC3) the shell and gui start just
fine, but the shell has the error message
Welcome to GRASS 6.4.0RC6 (2010)
GRASS homepage: http://grass.osgeo.org/
This version running thru: Bash Shell (/bin/bash)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
If required, restart the GUI with: g.gui oldtcltk
When ready to quit enter: exit
/usr/lib/grass64/etc/prompt.sh: line 2: g.gisenv: command not found
/usr/lib/grass64/etc/prompt.sh: line 2: g.gisenv: command not found
/usr/lib/grass64/etc/prompt.sh: line 2: g.gisenv: command not found
GRASS 6.4.0RC6 (longlatWGS84_EPSG4326_all):~ >
No commands are recognised in the shell (as stated in the error
message). so e.g.
g.list type=vect also fails.
BUT strangely, issuing the command from the gui works (oldtcltk and tcltk)!
My problem is that I need the shell for scripted gis operations.
The info "current GRASS environment settings" using the gui shows
g.gisenv
DIGITIZER='none';
GISDBASE='/data/z/gis/grass/locations';
GML_OGR_PATH='/usr/bin/ogr2ogr';
MAPSET='PERMANENT';
LOCATION_NAME='longlatWGS84_EPSG4326_all';
DEBUG='0';
MONITOR='x0';
GRASS_GUI='oldtcltk';
I can't find anything about this problem on Google.
Start GRASS and check output of:
env | grep GISBASE
It should give something like:
GISBASE=/path/to/grass-6.4
If GISBASE is incorrect, all GRASS comands will fail. If it's so,
check contents of grass64 file. (/usr/bin/grass64)
Maris.
2010/6/28, Eduard Ruffert <ruffert@mkm.de>:
Hi.
I installed the package Version: 6.4.0~rc6-1~gfossit50+1
on debian lenny (Linux version 2.6.26-2-amd64 (Debian 2.6.26-21lenny4)
(dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian
4.1.2-25)) #1 SMP Tue Mar 9 22:29:
32 UTC 2010).
When I start grass and select my location (which was created by a
previous version of grass 6.4. - RC3) the shell and gui start just
fine, but the shell has the error message
Welcome to GRASS 6.4.0RC6 (2010)
GRASS homepage: http://grass.osgeo.org/
This version running thru: Bash Shell (/bin/bash)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
If required, restart the GUI with: g.gui oldtcltk
When ready to quit enter: exit
/usr/lib/grass64/etc/prompt.sh: line 2: g.gisenv: command not found
/usr/lib/grass64/etc/prompt.sh: line 2: g.gisenv: command not found
/usr/lib/grass64/etc/prompt.sh: line 2: g.gisenv: command not found
GRASS 6.4.0RC6 (longlatWGS84_EPSG4326_all):~ >
No commands are recognised in the shell (as stated in the error
message). so e.g.
g.list type=vect also fails.
BUT strangely, issuing the command from the gui works (oldtcltk and tcltk)!
My problem is that I need the shell for scripted gis operations.
The info "current GRASS environment settings" using the gui shows
g.gisenv
DIGITIZER='none';
GISDBASE='/data/z/gis/grass/locations';
GML_OGR_PATH='/usr/bin/ogr2ogr';
MAPSET='PERMANENT';
LOCATION_NAME='longlatWGS84_EPSG4326_all';
DEBUG='0';
MONITOR='x0';
GRASS_GUI='oldtcltk';
I can't find anything about this problem on Google.
Hello,
I just unpacked that deb and tested on my Gentoo system. Everything
works just fine.
GISBASE should point to /usr/lib/grass64
You can try to reinstall, still I don't see why current install could
fail, as PATH is set by $GISBASE/etc/Init.sh around line 258.
After launching GRASS, Your $PATH should start with
"/usr/lib/grass64/bin". (echo $PATH) Are You using some strange shell?
Maris.
2010/6/29, ruffert mkm <ruffert@mkm.de>:
Thanks for the help:
Maris Nartiss wrote:
env | grep GISBASE
It should give something like:
GISBASE=/path/to/grass-6.4
GISBASE=/usr/lib/grass64/
contentes of /usr/bin/grass64:
[...]
# Set the GISBASE variable
GISBASE=/usr/lib/grass64
export GISBASE
exec "$GISBASE/etc/Init.sh" "$@"
If in a grass shell I cd to /usr/lib/grass64/bin (which contains g.gisenv)
all is well (obviously).
If I set PATH to contain "/usr/lib/grass64/bin" no errors are reported, even
if leave the directory /usr/lib/grass64/bin.
If I set PATH to contain "/usr/lib/grass64/" the errors are reported again.
Should I set GISBASE to /usr/lib/grass64/bin in /usr/bin/grass64, or will
that make problems?
And the more general question is: how can I repair my broken install? Is an
aptitude reinstall enough to correct things?
But thank you very much anyway (I mean it), since you got me to remember
something about my system settings... (which automatically was resetting my
PATH)
and et voila, now everything is working just fine "Don't mess with PATH and
GRASS is happy".