[GRASS-dev] g.extension still broken in GRASS 7 on Mac
Michael Barton
Michael.Barton at asu.edu
Thu Oct 24 09:19:55 PDT 2013
This makes sense given the error messages. If so, this has been a problem for awhile--although I hoped/thought it was solved a month back or so.
$GISBASE for the Mac is inside the GRASS-7.0.app. This is owned by the system, though I (as an admin) have read/write privileges. Normally this would be sufficient, but GRASS won't let anyone but the owner write to PERMANENT. This affects everyone using GRASS for Mac, making g.extension unusable. The most direct solution would be for this requirement to be relaxed for demolocation but I don't know how difficult this will be to implement.
Oddly, this is not a problem for GRASS 6.4. So I assume that it uses a different method to compile and install extensions.
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 24, 2013, at 8:38 AM, Glynn Clements <glynn at gclements.plus.com> wrote:
>
> Michael Barton wrote:
>
>>> it tries to run the virtual session therein to generate the header of
>>> the manual. So it wants to use PERMANENT rather than store anything
>>> there. Perhaps there is a switch needed/existing to not test who the
>>> owner of the mapset is.
>>
>> Forgot to ask, if anyone as an idea as to *which* PERMANENT it is
>> looking for. I'm the owner of all the directories in by GISDatabase
>> folder. So where is it finding a PERMANENT that I don't have
>> permissions for?
>
> It's probably $GISBASE/demolocation/PERMANENT.
>
> The run_grass macro in Rules.make sets GISRC to $(RUN_GISRC) when
> executing commands (the Makefiles are designed to work outside of a
> GRASS session). It also sets GISBASE, PATH, PYTHONPATH,
> LD_LIBRARY_PATH (or the equivalent on other platforms) and LC_ALL.
>
> Grass.make sets RUN_GISRC to $(GISBASE)/demolocation/.grassrc70.
>
> That file is constructed by demolocation/Makefile, and uses
> $GISBASE/demolocation/PERMANENT as the current
> database/location/mapset.
>
> You can override RUN_GISRC on the make command line if you want to use
> a different $GISRC file.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list