[GRASSLIST:476] Re: where is $LOCATION set

Buchan Milne bgmilne at cae.co.za
Mon Jun 23 15:01:43 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erin ODoherty wrote:
> I am really out-of-date with GRASS.  I finally installed  GRASS 5.0.2 on a
> PC running Mandrake Linux and I am having trouble with the environment
> variables.

Why "finally"? Mandrake 9.0 and 9.1 ship with grass-5.0.0 in contribs,
and there are RPMs for 5.0.2 for 9.1:

http://ranger.dnsalias.com/mandrake/9.1/grass-5.0.2-1.1mdk.i586.rpm

You can then start grass from the menu
(Applications->Sciences->Geosciences->Grass).

  When I get into the first screen in GRASS I enter :
> Location: hayden
> Mapset: erin
> Database: /files/data
>
> but if I type cd $LOCATION it puts me in /home/erin.

First use echo to see the value of the variable, or env to see all
variables. I think the variable you are looking for is LOCATION_NAME.
Since $LOCATION is emtpy, you are effectively typing "cd ", which will
put you in your home directory.

> I tried putting a
> symbolic link there, but that didn't help.  Obviously I have something set
> wrong and I can't find where $LOCATION  is set to see if I can change it.
> (I installed as root, and then remembered that I was supposed to do it
as a
> regular user.  I then tried the latter and it didn't work, so I went back
> to being superuser and reinstalled.  I guess it could be a problem with
> permissions.)
> Thanks for any advice.

You should normally install software as super-user if you want it to be
accessible system-wide (and not just for one user).

Regards,
Buchan

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+906WrJK6UGDSBKcRAguQAJ4oRVvxmU9Ql2usuhc4cAZTsEkLlACfTfxU
q/Cg0zt3uPsHVhBUdPGmUV4=
=IThG
-----END PGP SIGNATURE-----

******************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to info at cae.co.za for a copy.
******************************************************************




More information about the grass-user mailing list