[GRASS-dev] g.extension still broken in GRASS 7 on Mac

Michael Barton Michael.Barton at asu.edu
Mon Oct 21 22:51:06 PDT 2013


Here is a bit more. When I try to send an extension to a directory where I do have permissions without using sudo, g.extension on GRASS 7 still insists on putting it into the GRASS app.

GRASS 7.0.svn (nc_spm_08):~ >  g.extension extension=r.stream.order prefix=/Users/cmbarton/Library/GRASS/7.0/Modules
Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...
Compiling...
mkdir: /Applications/GRASS/bin: Permission denied
make: *** [/Applications/GRASS/bin] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu












On Oct 21, 2013, at 10:08 PM, Michael Barton <michael.barton at asu.edu<mailto:michael.barton at asu.edu>> wrote:

So responding to a query from a colleague I just tried g.extension in GRASS 7 that I compiled a few hours ago. Note that I'm running this from the terminal and yes GRASS_ADDON_PATH is set properly.

$GRASS_ADDON_PATH
bash: :/Library/GRASS/7.0/Modules/bin

I start running g.extensions with just the normal default settings

g.extension extension=r.stream.order
Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...
Compiling...
mkdir: /Applications/GRASS/bin: Permission denied
make: *** [/Applications/GRASS/bin] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.

First of all, this is wrong. Instead of putting this into the default, GRASS_ADDON_PATH, it is trying to create a new bin directory inside the GRASS app.

GRASS 7.0.svn (nc_spm_08):~ > sudo g.extension extension=r.stream.order
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
You must be in GRASS GIS to run this program.

Now it won't let me use sudo to run g.extension.

So I try to force g.extension to use the proper directory specified by GRASS_ADDON_PATH

GRASS 7.0.svn (nc_spm_08):~ > g.extension extension=r.stream.order prefix=/Library/GRASS/7.0/Modules/bin
ERROR: Unable to create '/Library/GRASS/7.0/Modules/bin/bin': [Errno 13]
       Permission denied: '/Library/GRASS/7.0/Modules/bin/bin'

Again permission denied.

sudo g.extension extension=r.stream.order prefix=/Library/GRASS/7.0/Modules/bin
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
You must be in GRASS GIS to run this program.

And again, I get a bogus message when I use sudo to override the permissions issue.

So there is no way this can work AFAICT.  Maybe it work in GRASS 6.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu<http://csdc.asu.edu/>













-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131022/667cee7c/attachment-0001.html>


More information about the grass-dev mailing list