William:
The link you provided documents how to use g.extension for installing
python scripts in GRASS 7.3. In particular, it uses the 'url=....'
argument to specify a link to a zip file. I am using the stable version
of GRASS 7.0 that is installed with Ubuntu 16.01. In that version, the
'url=...' argument is not available. Is there an alternative way to
install your extension in GRASS 7.0?
Nikos:
Can you get GRASS' source code (any version 7.x) and follow steps in
https://svn.osgeo.org/grass/grass-addons/README?
William:
The link you provided documents how to use g.extension for installing
python scripts in GRASS 7.3. In particular, it uses the 'url=....'
argument to specify a link to a zip file. I am using the stable
version of GRASS 7.0 that is installed with Ubuntu 16.01. In that
version, the 'url=...' argument is not available. Is there an
alternative way to install your extension in GRASS 7.0?
Moritz:
Download the extension to your machine, unzip it, go into the directory
and then run
make MODULE_TOPDIR=/path/to/your/grass/installation
You have to have the grass-dev package installed for it to work.
William:
I have tried installing from the unzipped directory using the following
for grass installation path, and with the following errors:
make MODULE_TOPDIR=/usr/lib/grass70
GISRC=/usr/lib/grass70/demolocation/.grassrc70 GISBASE=/usr/lib/grass70
PATH="/usr/lib/grass70/bin:/usr/lib/grass70/bin:/usr/lib/grass70/scripts:$PATH"
PYTHONPATH="/usr/lib/grass70/etc/python:/usr/lib/grass70/gui/wxpython:$PYTHONPATH"
LD_LIBRARY_PATH="/usr/lib/grass70/bin:/usr/lib/grass70/bin:/usr/lib/grass70/scripts:/usr/lib/grass70/lib:/usr/lib/grass70/lib:"
LC_ALL=C g.parser -t i.worldview.toar.py | sed s/\"/\\\\\"/g | sed
's/.*/_("&")/' >
/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c
/bin/sh: 1: cannot create
/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c:
Directory nonexistent
ERROR: Variable 'LOCATION_NAME' not set
/usr/lib/grass70/include/Make/ScriptRules.make:28: recipe for target
'/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c'
failed
make:
[/usr/lib/grass70/locale/scriptstrings/i.worldview.toar_to_translate.c]
Error 2 (ignored)
Alright. Are you inside a GRASS session? Try it out. I always compile my
add-ons once inside a GRASS session.
Best, Nikos
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user