[GRASS-user] g.extension - ERROR: G_getenv(): Variable LOCATION_NAME not set

Eric Momsen eric.momsen at gmail.com
Tue Feb 7 11:13:05 EST 2012


Not sure if I should be sending this to the mail list or reporting it
as a bug?  Seems I am doing everything right, but I still have a lot
to learn.  I hope I am missing something easy???

I want to add some extensions for all users on a shared virtual
machine (Gnome, Debian, GRASS 6.4.2RC3 (2012) ).  I have run gksudo
'grass64 -gui' and used the GUI for g.extension to install an
extension system wide.  Below is the error I received.  I checked the
environment settings, and the variable LOCATION_NAME is set.

I then tried the Download Source option -it did download the
i.landsat.toar file, but neither of the listed commands in the output
would work. (The second set of output for this attempt.)

If there isn't a quick answer, would it be easier to just run from
source with GRASS 7?  We are currently all logging into the same
virtual machine, so the admin efficiency of being able to deploy a
package isn't a big issue.

Any suggestions?  Thanks,
Eric

{{{
(Mon Feb  6 15:32:52 2012)
g.extension.py extension=i.landsat.toar
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)...
Compiling...
/usr/local/grass-6.4.2RC3/include/Make/Module.make:25:
warning: overriding commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Rules.make:90:
warning: ignoring old commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Module.make:25:
warning: overriding commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Rules.make:90:
warning: ignoring old commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Module.make:25:
warning: overriding commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Rules.make:90:
warning: ignoring old commands for target `install'

ERROR: G_getenv(): Variable LOCATION_NAME not set

/usr/local/grass-6.4.2RC3/include/Make/Module.make:25:
warning: overriding commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Rules.make:90:
warning: ignoring old commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Module.make:25:
warning: overriding commands for target `install'
/usr/local/grass-6.4.2RC3/include/Make/Rules.make:90:
warning: ignoring old commands for target `install'
make[2]: *** [/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/g
isdev/1894.0/i.landsat.toar/man/man1/i.landsat.toar.1] Error
127
make[1]: *** [mancmd] Error 2
make: *** [cmd] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.
(Mon Feb  6 15:32:55 2012) Command finished (2 sec)
(Mon Feb  6 15:33:20 2012)

g.gisenv -n
GISDBASE=/home/emomsen/GRASSDATA
LOCATION_NAME=gksudoLoc
MAPSET=gkMap
GRASS_GUI=wxpython
(Mon Feb  6 15:33:20 2012) Command finished (0 sec)
}}}

{{{
emomsen at gisdev:~$ sudo make MODULE_TOPDIR=/usr/local/grass-6.4.2RC3
ARCH_DISTDIR=/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0/i.landsat.toar
INST_DIR=/root/.grass6/addons install
[sudo] password for emomsen:
make: *** No rule to make target `install'.  Stop.

emomsen at gisdev:~$ cd GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0
emomsen at gisdev:~/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0$ ls
i.landsat.toar

emomsen at gisdev:~/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0$ sudo
make MODULE_TOPDIR=/usr/local/grass-6.4.2RC3
BIN=/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0/i.landsat.toar/bin
HTMLDIR=/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0/i.landsat.toar/docs/html
MANDIR=/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0/i.landsat.toar/man/man1
SCRIPTDIR=/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0/i.landsat.toar/scripts
ETC=/home/emomsen/GRASSDATA/gksudoLoc/gkMap/.tmp/gisdev/10530.0/i.landsat.toar/etc/i.landsat.toar
make: *** No targets specified and no makefile found.  Stop.
}}}


More information about the grass-user mailing list