Opened 9 years ago

Last modified 8 years ago

#2598 closed defect

g.extension compilation fails — at Version 1

Reported by: ewcgrass Owned by: grass-dev@…
Priority: normal Milestone: 7.0.3
Component: Default Version: svn-releasebranch70
Keywords: Cc:
CPU: x86-64 Platform: Linux

Description (last modified by martinl)

Running GRASS 7.0.1svn(64bit)-2015-02-21, Python 2.7.0, wxPython 2.8.12.0, Linux-2.6.35.14-106.fc14.x86_64-x86_64-with-fedora-14

running g.extension (from gui or from command line) gives:

--snip--
g.extension extension=r.damflood svnurl=http://svn.osgeo.org/grass/grass-addons/grass7
Fetching <r.damflood> from GRASS-Addons SVN repository (be patient)...
Compiling...
mkdir: cannot create directory `/usr/local/grass7.0.1svn-
x86_64-unknown-linux-gnu-21_02_2015/dist.x86_64-unknown-
linux-gnu': Permission denied
make: *** [/usr/local/grass7.0.1svn-x86_64-unknown-linux-
gnu-21_02_2015/dist.x86_64-unknown-linux-gnu] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
--snip--

where g.extension appears to be wanting to write temporary files while compiling (and installing?) to a directory with root privileges, instead of at $HOME/.grass7/addons which based on manual pages should be the default local directory if "s" flag is not set.

I have had same problem with various GRASS-6 versions (where I simply stopped trying to install addons), except for GRASS-6.4.4svn-x86_64-02-11-2013, where g.extension works but with messages like:

--snip--
/usr/local/grass6.4.4svn-x86_64-unknown-linux-gnu-
02_11_2013/include/Make/Grass.make:423: warning: overriding
recipe for target `/home/rick/data/grassdata/ns-nad83-utm-
25m-
10m/PERMANENT/.tmp/localhost.localdomain/7565.0/r.flip/bin'
--snip--

as an apparent work-around, which allowed addons to be installed into $HOME/.grass6/addons directory.

Change History (1)

comment:1 by martinl, 9 years ago

Description: modified (diff)
Milestone: 7.0.1
Note: See TracTickets for help on using tickets.