#491: grass7: cannot start grass with -text and no existing .grassrc7
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
With no .grassrc7 file, starting grass7 with the -text parameter leads to
the following error:
{{{
/home/mlennert/<UNKNOWN>/<UNKNOWN>/.gislock: No such file or directory
ERREUR :
/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/etc/lock:
mlennert is currently running GRASS in selected mapset (file
/home/mlennert/<UNKNOWN>/<UNKNOWN>/.gislock found). Concurrent use not
allowed.
}}}
WELCOME TO GRASS Version 7.0.svn 2010
[...]
Hit RETURN to continue
Starting GRASS GIS...
/home/martin/<UNKNOWN>/<UNKNOWN>/.gislock: No such file or directory
FEHLER: /opt/GRASS70/grass-7.0.svn/etc/lock:
Unable to properly access "/home/martin/<UNKNOWN>/<UNKNOWN>/.gislock"
Please notify system personel.
}}}
Platform is Debian Lenny, but as far as I understand this isn't relevant
in this case.
#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by hamish):
the old interactive text forms have been removed in grass7. either pass
the path to the mapset on the command line or if none is given and you've
had a previous session the last session will be used if no command line
args are given and `GRASS_GUI: text`.
of course the error checking, messages, and new text startup workflow can
always be improved, you're not looking at the final product.
#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martin):
Ok, let me try it this way:
{{{
jive: 23:30:10 ~> /opt/GRASS70/bin/grass70 -text
/home/martin/grassdata/world/PERMANENT
[...]
Hit RETURN to continue
Starting GRASS GIS...
</home/martin/grassdata/world/PERMANENT> is not a valid GRASS location
}}}
This doesn't come by surprise, since the entire $GISDBASE has yet to be
created. Next try, adding "-c":
{{{
jive: 23:32:25 ~> /opt/GRASS70/bin/grass70 -c -text
/home/martin/grassdata/world/PERMANENT
[...]
Hit RETURN to continue
Starting GRASS GIS...
The location <world> does not exist. Please create it first.
}}}
So, should I conclude that creating a new $GISBASE is currently impossible
in 7.0 SVN trunk without using a GUI ?
This ticket is 3 years old and I tried -c and -text. Both options are
working fine and I can create a new database without any problem. I think
this problem has been fixed now. Also, we don't even have .grassrc7
anymore.