[GRASS-dev] g.extension still broken in GRASS 7 on Mac
Michael Barton
Michael.Barton at asu.edu
Tue Oct 29 00:16:32 PDT 2013
OK. This is weird.
I have installed on a different computer the same build of GRASS 7 that I tested this on last Friday, where it worked fine.
Outside of the difference that the other computer is a Mac desktop (iMac) and this one is a laptop (MacBook Air), they are set up the same (OS, Python, etc). I am testing this on the same extensions that I tested last Friday. But now I get a permission denied error and clearly GRASS is trying to create a directory in the wrong place again.
Both GRASS_ADDON_BASE and GRASS_ADDON_PATH are set correctly
GRASS 7.0.svn (nc_spm_08):~ > $GRASS_ADDON_PATH
bash: :/Library/GRASS/7.0/Modules/bin: No such file or directory
GRASS 7.0.svn (nc_spm_08):~ > $GRASS_ADDON_BASE
bash: /Users/cmbarton/Library/GRASS/7.0/Modules: is a directory
Here is the error. I get the same thing even if I specify the proper directory by using the "prefix" argument.
GRASS 7.0.svn (nc_spm_08):~ > 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.
Where is it getting this path????
If I make /Applications/GRASS writable by anyone, compilation succeeds. The compiled binary is installed correctly into the directory specified by $GRASS_ADDON_BASE and NOTHING is written to /Applications/GRASS/bin
This is completely bizarre.
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 25, 2013, at 3:17 PM, Michael Barton <michael.barton at asu.edu> wrote:
> Yes!!!
>
> This works. Thanks much Martin!
>
> I test it with r.stream.order from the GRASS terminal and from the GUI wrapper. Both work. So now it is working better than GRASS 6.4.
>
> One question for what Bulent is experiencing. Do Mac users need to have the Developer tools installed for g.extension to work? I'm assuming yes, but do not know for sure. Also (maybe William can offer suggestion), does it matter what SDKs are installed?
>
> Michael
> ______________________________
> C. Michael Barton
> Director, Center for Social Dynamics & Complexity
> Professor of Anthropology, School of Human Evolution & Social Change
> Arizona State University
> Tempe, AZ 85287-2402
> USA
>
> voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
> fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
> www: http://csdc.asu.edu, http://shesc.asu.edu
> http://www.public.asu.edu/~cmbarton
>
> On Oct 25, 2013, at 1:18 AM, Martin Landa <landa.martin at gmail.com>
> wrote:
>
>> Hi,
>>
>> 2013/10/24 Glynn Clements <glynn at gclements.plus.com>:
>>
>>> You can override RUN_GISRC on the make command line if you want to use
>>> a different $GISRC file.
>>
>> right, done in r58103.
>>
>> @Michael: please let us know if it works for you.
>>
>> Martin
>>
>> --
>> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
>
More information about the grass-dev
mailing list