[GRASS-user] can not install addons with g.extension
Robert Nuske
rnuske at gwdg.de
Mon Feb 9 07:10:45 PST 2015
Dear GRASS-List,
using GRASS 7.0 from the ppa:grass-devel on ubuntu 14.01 I am not able to
compile addons with g.extension
I use today’s daily GRASS built (7.0.0+1svn64508~ubuntu14.04.1)
and the packages grass70, grass70-core, grass70-dev, grass70-doc, grass70-gui
As standard user I am not allowed to create the directory
/usr/lib/grass70/docs/man
(see step 1 below)
This directory can be created if GRASS is run as ROOT.
The built fails then because it can not find g.html2man.py
(see step 2 below)
After creating a symbolic link (ln -s g.html2man g.html2man.py)
g.extension fails because it can not find the python module html:
ImportError: No module named html
(see step 3 below)
slightly desperate
Robert
1. as Standard User
===========================================================
GRASS 7.0.0 (test_location):~ > g.extension extension=r.grow.shrink --verbose
Fetching <r.grow.shrink> from GRASS-Addons SVN repository (be patient)...
A r.grow.shrink/DEPRECATED
A r.grow.shrink/main.c
A r.grow.shrink/Makefile
A r.grow.shrink/r.grow.shrink.html
U r.grow.shrink
Checked out revision 64528.
Compiling...
mkdir -p /tmp/tmpPA2tld/r.grow.shrink/bin
mkdir -p /tmp/tmpPA2tld/r.grow.shrink/etc
mkdir -p /tmp/tmpPA2tld/r.grow.shrink/docs/html
mkdir -p /usr/lib/grass70/docs/man
mkdir: cannot create directory '/usr/lib/grass70/docs/man': Permission denied
make: *** [/usr/lib/grass70/docs/man] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
2. as ROOT (sudo -i)
===========================================================
GRASS 7.0.0 (test_location):~ > g.extension extension=r.grow.shrink --verbose
Fetching <r.grow.shrink> from GRASS-Addons SVN repository (be patient)...
A r.grow.shrink/DEPRECATED
A r.grow.shrink/main.c
A r.grow.shrink/Makefile
A r.grow.shrink/r.grow.shrink.html
U r.grow.shrink
Checked out revision 64528.
Compiling...
mkdir -p /tmp/tmptZNptI/r.grow.shrink/bin
mkdir -p /tmp/tmptZNptI/r.grow.shrink/etc
mkdir -p /tmp/tmptZNptI/r.grow.shrink/docs/html
mkdir -p /usr/lib/grass70/docs/man
mkdir -p /tmp/tmptZNptI/r.grow.shrink/docs/man/man1
test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
gcc -Wall -g -O -I/usr/lib/grass70/include -I/usr/lib/grass70/include -
DPACKAGE=\""grassmods"\" -I/usr/lib/grass70/include -
I/usr/lib/grass70/include -DRELDIR=\"/tmp/tmptZNptI/r.grow.shrink\" -o
OBJ.x86_64-pc-linux-gnu/main.o -c main.c
: && gcc -L/usr/lib/grass70/lib -L/usr/lib/grass70/lib -Wl,--export-dynamic -
Wl,-rpath-link,/usr/lib/grass70/lib -o
/tmp/tmptZNptI/r.grow.shrink/bin/r.grow.shrink OBJ.x86_64-pc-linux-gnu/main.o
-lgrass_gis.7.0.0svn -lgrass_raster.7.0.0svn -lm
if [ "/tmp/tmptZNptI/r.grow.shrink/bin/r.grow.shrink" != "" ] ; then
GISRC=/tmp/grass7-root-15037/gisrc 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="/tmp/tmptZNptI/r.grow.shrink/bin:/usr/lib/grass70/scripts:/usr/lib/grass70/lib:/usr/lib/grass70/lib:/usr/lib/grass70/lib"
LC_ALL=C /tmp/tmptZNptI/r.grow.shrink/bin/r.grow.shrink --html-description <
/dev/null | grep -v '</body>\|</html>' > r.grow.shrink.tmp.html ; fi
VERSION_NUMBER=7.0.0svn VERSION_DATE=2015 \
python /usr/lib/grass70/tools/mkhtml.py r.grow.shrink >
/tmp/tmptZNptI/r.grow.shrink/docs/html/r.grow.shrink.html
VERSION_NUMBER=7.0.0svn /usr/lib/grass70/tools/g.html2man.py
/tmp/tmptZNptI/r.grow.shrink/docs/html/r.grow.shrink.html
/tmp/tmptZNptI/r.grow.shrink/docs/man/man1/r.grow.shrink.1
/bin/sh: 1: /usr/lib/grass70/tools/g.html2man.py: not found
make: *** [/tmp/tmptZNptI/r.grow.shrink/docs/man/man1/r.grow.shrink.1] Error
127
rm r.grow.shrink.tmp.html
ERROR: Compilation failed, sorry. Please check above error messages.
3. as ROOT after symlink for g.html2man.py
===========================================================
GRASS 7.0.0 (test_location):/usr/lib/grass70/tools > g.extension
extension=r.grow.shrink --verbose
Fetching <r.grow.shrink> from GRASS-Addons SVN repository (be patient)...
A r.grow.shrink/DEPRECATED
A r.grow.shrink/main.c
A r.grow.shrink/Makefile
A r.grow.shrink/r.grow.shrink.html
U r.grow.shrink
Checked out revision 64530.
Compiling...
mkdir -p /tmp/tmpcAwQMc/r.grow.shrink/bin
mkdir -p /tmp/tmpcAwQMc/r.grow.shrink/etc
mkdir -p /tmp/tmpcAwQMc/r.grow.shrink/docs/html
mkdir -p /tmp/tmpcAwQMc/r.grow.shrink/docs/man/man1
test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
gcc -Wall -g -O -I/usr/lib/grass70/include -I/usr/lib/grass70/include -
DPACKAGE=\""grassmods"\" -I/usr/lib/grass70/include -
I/usr/lib/grass70/include -DRELDIR=\"/tmp/tmpcAwQMc/r.grow.shrink\" -o
OBJ.x86_64-pc-linux-gnu/main.o -c main.c
: && gcc -L/usr/lib/grass70/lib -L/usr/lib/grass70/lib -Wl,--export-dynamic -
Wl,-rpath-link,/usr/lib/grass70/lib -o
/tmp/tmpcAwQMc/r.grow.shrink/bin/r.grow.shrink OBJ.x86_64-pc-linux-gnu/main.o
-lgrass_gis.7.0.0svn -lgrass_raster.7.0.0svn -lm
if [ "/tmp/tmpcAwQMc/r.grow.shrink/bin/r.grow.shrink" != "" ] ; then
GISRC=/tmp/grass7-root-15392/gisrc 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="/tmp/tmpcAwQMc/r.grow.shrink/bin:/usr/lib/grass70/scripts:/usr/lib/grass70/lib:/usr/lib/grass70/lib:/usr/lib/grass70/lib"
LC_ALL=C /tmp/tmpcAwQMc/r.grow.shrink/bin/r.grow.shrink --html-description <
/dev/null | grep -v '</body>\|</html>' > r.grow.shrink.tmp.html ; fi
VERSION_NUMBER=7.0.0svn VERSION_DATE=2015 \
python /usr/lib/grass70/tools/mkhtml.py r.grow.shrink >
/tmp/tmpcAwQMc/r.grow.shrink/docs/html/r.grow.shrink.html
VERSION_NUMBER=7.0.0svn /usr/lib/grass70/tools/g.html2man.py
/tmp/tmpcAwQMc/r.grow.shrink/docs/html/r.grow.shrink.html
/tmp/tmpcAwQMc/r.grow.shrink/docs/man/man1/r.grow.shrink.1
Traceback (most recent call last):
File "/usr/lib/grass70/tools/g.html2man.py", line 4, in <module>
from html import HTMLParser, HTMLParseError
ImportError: No module named html
make: *** [/tmp/tmpcAwQMc/r.grow.shrink/docs/man/man1/r.grow.shrink.1] Error 1
rm r.grow.shrink.tmp.html
ERROR: Compilation failed, sorry. Please check above error messages.
More information about the grass-user
mailing list