Hi Anna,

It works fine for me in GRASS 6.4, but does not work in GRASS 7. I get somewhat 
different errors on different machines. On both tested so far, GRASS_ADDON_BASE 
is correctly set:

GRASS 7.0.svn (nc_spm_08):~ > $GRASS_ADDON_BASE
bash: /Users/cmbarton/Library/GRASS/7.0/Modules: is a directory

On one machine, GRASS_ADDON_PATH is also set. It is not set on the other one. 
This is odd of course because AFAICT, both are set in the Mac startup scripts.

On one machine (the one with GRASS_ADDON_PATH set), I get the errors reported 
below. On the other machine, I get the following different set of errors:

GRASS 7.0.svn (nc_spm_08):~ > g.extension extension=r.fuzzy
Fetching <r.fuzzy> from GRASS-Addons SVN (be patient)...
Compiling...
main.c: In function 'main':
main.c:152: warning: format not a string literal and no format arguments
main.c:156: warning: format not a string literal and no format arguments
main.c: In function 'main':
main.c:152: warning: format not a string literal and no format arguments
main.c:156: warning: format not a string literal and no format arguments
ERROR: MAPSET PERMANENT - permission denied
make[1]: *** [r.fuzzy.set.tmp.html] Error 1
ERROR: MAPSET PERMANENT - permission denied
make[1]: *** [r.fuzzy.logic.tmp.html] Error 1
main.c: In function 'main':
main.c:151: warning: format not a string literal and no format arguments
main.c:155: warning: format not a string literal and no format arguments
main.c:157: warning: format not a string literal and no format arguments
main.c: In function 'main':
main.c:151: warning: format not a string literal and no format arguments
main.c:155: warning: format not a string literal and no format arguments
main.c:157: warning: format not a string literal and no format arguments
map_parser.c: In function 'parse_map_file':
map_parser.c:92: warning: format not a string literal and no format arguments
map_parser.c: In function 'parse_map_file':
map_parser.c:92: warning: format not a string literal and no format arguments
rule_parser.c: In function 'parse_rules':
rule_parser.c:132: warning: format not a string literal and no format arguments
rule_parser.c: In function 'parse_rules':
rule_parser.c:132: warning: format not a string literal and no format arguments
ERROR: MAPSET PERMANENT - permission denied
make[1]: *** [r.fuzzy.system.tmp.html] Error 1
Installing...
make: *** No rule to make target `install'.  Stop.
WARNING: Installation failed, sorry. Please check above error messages.


Bulent gets an entirely different set of errors in GRASS 6.5

Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...
A    r.stream.order/main.c
A    r.stream.order/description.html
A    r.stream.order/global.h
A    r.stream.order/io.c
A    r.stream.order/r_stream_order_orders.png
A    r.stream.order/order.c
A    r.stream.order/Makefile
 U   r.stream.order
Checked out revision 58089.
Compiling <r.stream.order>...
/Applications/GRASS_6.4.3/GRASS-6.4.3.app/Contents/MacOS/include/Make/Grass.make:423:
 warning: overriding commands for target 
`/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/bin'
/Applications/GRASS_6.4.3/GRASS-6.4.3.app/Contents/MacOS/include/Make/Grass.make:414:
 warning: ignoring old commands for target 
`/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/bin'
mkdir -p 
/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/bin
mkdir -p 
/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/include/grass
mkdir -p 
/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/etc
mkdir -p 
/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/driver
mkdir -p 
/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/driver/db
mkdir -p 
/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/fonts
test -d OBJ.x86_64-apple-darwin12.4.0 || mkdir -p OBJ.x86_64-apple-darwin12.4.0
gcc '-I/Applications/GRASS_6.4.3/GRASS-6.4.3.app/Contents/MacOS/include' 
'-I/Users/bulentarikan/Library/GRASS/6.4/Modules/bin/include' 
'-I/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/include'
  -g -O2   -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk   
-I/Library/Frameworks/GDAL.framework/Versions/1.9/Headers 
-I/Library/Frameworks/GEOS.framework/Versions/3/unix/include   
-DPACKAGE=\""grassmods"\"  
'-I/Applications/GRASS_6.4.3/GRASS-6.4.3.app/Contents/MacOS/include' 
'-I/Users/bulentarikan/Library/GRASS/6.4/Modules/bin/include' 
'-I/Users/bulentarikan/grassdata/spearfish60/PERMANENT/.tmp/bulent-arikans-macbook-pro.local/6007.0/dist.x86_64-apple-darwin12/include'
 -o OBJ.x86_64-apple-darwin12.4.0/io.o -c io.c
In file included from io.c:1:
/Applications/GRASS_6.4.3/GRASS-6.4.3.app/Contents/MacOS/include/grass/glocale.h:9:10:
 fatal error:
      'libintl.h' file not found
#include <libintl.h>
         ^
1 error generated.
make: *** [OBJ.x86_64-apple-darwin12.4.0/io.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
GRASS 6.4.3 (spearfish60):~ >

None of these make any sense.

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 22, 2013, at 7:35 AM, Anna Petrášová 
<kratocha...@gmail.com<mailto:kratocha...@gmail.com>> wrote:

Hi,

On Tue, Oct 22, 2013 at 1:51 AM, Michael Barton 
<michael.bar...@asu.edu<mailto:michael.bar...@asu.edu>> wrote:
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.


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 
/Users/akratoc/Library/GRASS/7.0/Modules and GRASS_ADDON_PATH is empty. Tell me 
if there is something to test.

Anna


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












On Oct 21, 2013, at 10:08 PM, Michael Barton 
<michael.bar...@asu.edu<mailto:michael.bar...@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<tel:480-965-6262> (SHESC), 480-965-8130/727-9746 (CSDC)
fax:          480-965-7671<tel:480-965-7671> (SHESC),  
480-727-0709<tel:480-727-0709> (CSDC)
www: http://www.public.asu.edu/~cmbarton, 
http://csdc.asu.edu<http://csdc.asu.edu/>














_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org<mailto:grass-dev@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/grass-dev


_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to