<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 1:51 AM, Michael Barton <span dir="ltr"><<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div style="word-wrap:break-word">
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.
<div><br>
</div>
<div>
<div>GRASS 7.0.svn (nc_spm_08):~ >  g.extension extension=r.stream.order prefix=/Users/cmbarton/Library/GRASS/7.0/Modules </div><div><div class="h5">
<div>Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...</div>
<div>Compiling...</div>
<div>mkdir: /Applications/GRASS/bin: Permission denied</div>
<div>make: *** [/Applications/GRASS/bin] Error 1</div>
<div>ERROR: Compilation failed, sorry. Please check above error messages.</div>
<div><br></div></div></div></div></div></blockquote><div><br></div><div>I don't have any problem with installing extensions on Mac, I've just tried installing both C and Python extensions. My GRASS_ADDON_BASE is <span style="font-size:13px;font-family:arial,sans-serif">/Users/akratoc/</span><span style="font-size:13px;font-family:arial,sans-serif">Library/GRASS/7.0/Modules and GRASS_ADDON_PATH is empty. Tell me if there is something to test.</span></div>

<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Anna</span></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><div><div class="h5"><div>
</div>
<div>Michael</div>
<div><span style="border-collapse:separate;font-family:Helvetica;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<div>
<div>____________________</div>
<div>C. Michael Barton</div>
<div>Director, Center for Social Dynamics & Complexity </div>
<div>Professor of Anthropology, School of Human Evolution & Social Change</div>
<div>Arizona State University</div>
<div><br>
</div>
voice: <span style="white-space:pre-wrap"> </span><a href="tel:480-965-6262" value="+14809656262" target="_blank">480-965-6262</a> (SHESC), 480-965-8130/727-9746 (CSDC)<br>
fax:          <a href="tel:480-965-7671" value="+14809657671" target="_blank">480-965-7671</a> (SHESC),  <a href="tel:480-727-0709" value="+14807270709" target="_blank">480-727-0709</a> (CSDC)<br>
<div>www: <a href="http://www.public.asu.edu/~cmbarton" target="_blank">http://www.public.asu.edu/~cmbarton</a>,
<a href="http://csdc.asu.edu" target="_blank">http://csdc.asu.edu</a></div>
<br>
</div>
<br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
<br>
</div>
<br>
<div>
<div>On Oct 21, 2013, at 10:08 PM, Michael Barton <<a href="mailto:michael.barton@asu.edu" target="_blank">michael.barton@asu.edu</a>> wrote:</div>
<br>
<blockquote type="cite">
<div style="word-wrap:break-word">
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.
<div><br>
</div>
<div>
<div>$GRASS_ADDON_PATH</div>
<div>bash: :/Library/GRASS/7.0/Modules/bin</div>
<div><br>
</div>
<div>I start running g.extensions with just the normal default settings</div>
<div><br>
</div>
<div>
<div>g.extension extension=r.stream.order</div>
<div>Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...</div>
<div>Compiling...</div>
<div>mkdir: /Applications/GRASS/bin: Permission denied</div>
<div>make: *** [/Applications/GRASS/bin] Error 1</div>
<div>ERROR: Compilation failed, sorry. Please check above error messages.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>GRASS 7.0.svn (nc_spm_08):~ > sudo g.extension extension=r.stream.order</div>
<div>dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid</div>
<div>You must be in GRASS GIS to run this program.</div>
<div><br>
</div>
<div>Now it won't let me use sudo to run g.extension. </div>
<div><br>
</div>
<div>So I try to force g.extension to use the proper directory specified by GRASS_ADDON_PATH</div>
<div><br>
</div>
<div>
<div>GRASS 7.0.svn (nc_spm_08):~ > g.extension extension=r.stream.order prefix=/Library/GRASS/7.0/Modules/bin</div>
<div>ERROR: Unable to create '/Library/GRASS/7.0/Modules/bin/bin': [Errno 13]</div>
<div>       Permission denied: '/Library/GRASS/7.0/Modules/bin/bin'</div>
</div>
<div><br>
</div>
<div>Again permission denied.</div>
<div><br>
</div>
<div>
<div>sudo g.extension extension=r.stream.order prefix=/Library/GRASS/7.0/Modules/bin</div>
<div>dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid</div>
<div>You must be in GRASS GIS to run this program.</div>
<div><br>
</div>
<div>And again, I get a bogus message when I use sudo to override the permissions issue.</div>
<div><br>
</div>
<div>So there is no way this can work AFAICT.  Maybe it work in GRASS 6.</div>
<div><br>
</div>
</div>
<div>Michael</div>
<div><span style="border-collapse:separate;font-family:Helvetica;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div>
<div>____________________</div>
<div>C. Michael Barton</div>
<div>Director, Center for Social Dynamics & Complexity </div>
<div>Professor of Anthropology, School of Human Evolution & Social Change</div>
<div>Arizona State University</div>
<div><br>
</div>
voice: <span style="white-space:pre-wrap"> </span><a href="tel:480-965-6262" value="+14809656262" target="_blank">480-965-6262</a> (SHESC), 480-965-8130/727-9746 (CSDC)<br>
fax:          <a href="tel:480-965-7671" value="+14809657671" target="_blank">480-965-7671</a> (SHESC),  <a href="tel:480-727-0709" value="+14807270709" target="_blank">480-727-0709</a> (CSDC)<br>
<div>www: <a href="http://www.public.asu.edu/~cmbarton" target="_blank">http://www.public.asu.edu/~cmbarton</a>,
<a href="http://csdc.asu.edu/" target="_blank">http://csdc.asu.edu</a></div>
<br>
</div>
<br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
</div>
</span><br>
<br>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div></div></div>
</div>

<br>_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br></blockquote></div><br></div></div>