[GRASS-user] Problem in install Extensions from addons
Hamish
hamish_b at yahoo.com
Sun Feb 17 01:00:42 PST 2013
Carla wrote:
> I'm working in GRASS 6.4.2. (Ubuntu).
>
> When I tried to install extensions from GRASS addons
...
> appeared this error
...
> g.extension.py extension=v.profile
...
> Fetching <v.profile> from GRASS-Addons SVN (be patient)...
> Compiling...
...
> mkdir: cannot create directory `/usr/lib/bin': Permission
> denied
> make: *** [/usr/lib/bin] Error 1
> ERROR: Compilation failed, sorry. Please check above error
> messages.
Hi,
the above was happening on Ubuntu, but would happen with the
wxGUI g.extension.py on any system where GRASS was installed by
the administrator and the regular user account didn't have
permission to write to the install dir (without sudo).
In the case of Ubuntu (and all Debian derivatives) the package
installs grass's GISBASE to /usr/lib/grass64, which is where the
funny /usr/lib/bin came from above.
The solution seems to be this patch, tested on Ubuntu 12.04 +
GRASS 6.4.2 on the OSGeo Live dvd's latest test build r10000:
http://aiolos.survey.ntua.gr/gisvm/dev/
and now applied in 6.4rel branch svn & devbr6.
Index: g.extension.py
===================================================================
--- g.extension.py (revision 55078)
+++ g.extension.py (working copy)
@@ -551,6 +551,7 @@
makeCmd = ['make',
'MODULE_TOPDIR=%s' % gisbase.replace(' ', '\ '),
+ 'ARCH_BINDIR=%s' % dirs['bin'],
'BIN=%s' % dirs['bin'],
'HTMLDIR=%s' % dirs['html'],
'MANDIR=%s' % dirs['man1'],
locally you can edit the /usr/lib/grass64/etc/gui/scripts/
g.extension.py file in a text editor (with sudo rights) to
add the missing ARCH_BINDIR line by hand.
It would be good to get some testing of that on the Mac too.
Hamish
More information about the grass-user
mailing list