[GRASS-user] Additional notes g.extension problems on Mac

Johannes Radinger JRadinger at gmx.at
Wed Oct 5 07:05:25 EDT 2011


Hello,

I just wanted to post some addtional information about using g.extension on Mac OSX (10.6.8) with GRASS 7.0.svn48327.

This follows probably this bug report: http://trac.osgeo.org/grass/ticket/1406

I tried to install the r.fuzzy AddOn with following command:
g.extension extension=r.fuzzy

I get back following lines which include the problem:

GRASS_ADDON_PATH has more items, using first defined - '/Users/admin/Library/Application Support/GRASS/7.0/Modules/bin'
Fetching 'r.fuzzy' from GRASS-Addons SVN (be patient)...
A    r.fuzzy/r.fuzzy.set
A    r.fuzzy/r.fuzzy.set/local_proto.h
A    r.fuzzy/r.fuzzy.set/shape.png
A    r.fuzzy/r.fuzzy.set/r.fuzzy.set.html
A    r.fuzzy/r.fuzzy.set/main.c
A    r.fuzzy/r.fuzzy.set/boundary.png
A    r.fuzzy/r.fuzzy.set/fuzzy.c
A    r.fuzzy/r.fuzzy.set/Makefile
A    r.fuzzy/r.fuzzy.set/set.png
A    r.fuzzy/r.fuzzy.logic
A    r.fuzzy/r.fuzzy.logic/local_proto.h
A    r.fuzzy/r.fuzzy.logic/main.c
A    r.fuzzy/r.fuzzy.logic/r.fuzzy.logic.html
A    r.fuzzy/r.fuzzy.logic/Makefile
A    r.fuzzy/r.fuzzy.logic/logic.c
A    r.fuzzy/r.fuzzy.system
A    r.fuzzy/r.fuzzy.system/flood.map
A    r.fuzzy/r.fuzzy.system/helpers.c
A    r.fuzzy/r.fuzzy.system/local_proto.h
A    r.fuzzy/r.fuzzy.system/flood.rul
A    r.fuzzy/r.fuzzy.system/rule_parser.c
A    r.fuzzy/r.fuzzy.system/main.c
A    r.fuzzy/r.fuzzy.system/system.c
A    r.fuzzy/r.fuzzy.system/f_result.png
A    r.fuzzy/r.fuzzy.system/fuzzylogic.c
A    r.fuzzy/r.fuzzy.system/io.c
A    r.fuzzy/r.fuzzy.system/map_parser.c
A    r.fuzzy/r.fuzzy.system/Makefile
A    r.fuzzy/r.fuzzy.system/r.fuzzy.system.html
A    r.fuzzy/Makefile
Checked out revision 48639.
Compiling 'r.fuzzy'...
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/bin.i386-apple-darwin10.8.0
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include/grass
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/lib
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/driver
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/driver/db
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/fonts
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/docs
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/man
mkdir -p /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/tools
make -C r.fuzzy.set || echo /Users/admin/Documents/GRASS-GIS/Test_Location/PERMANENT/.tmp/Johannes-Snow-Leopard.local/997.0/r.fuzzy/r.fuzzy.set >> /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/error.log
test -d OBJ.i386-apple-darwin10.8.0 || mkdir -p OBJ.i386-apple-darwin10.8.0
gcc  -g -O2   -arch i386 -arch x86_64  -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -o OBJ.i386-apple-darwin10.8.0/fuzzy.o -c fuzzy.c
fuzzy.c:1:27: error: grass/glocale.h: No such file or
directory
In file included from fuzzy.c:2:
local_proto.h:5:26: error: grass/raster.h: No such file or
directory
local_proto.h:6:23: error: grass/gis.h: No such file or
directory
In file included from fuzzy.c:2:
local_proto.h:36: error: expected ‘)’ before ‘cell’
fuzzy.c:4: error: expected ‘)’ before ‘cell’
fuzzy.c:1:27: error: grass/glocale.h: No such file or
directory
In file included from fuzzy.c:2:
local_proto.h:5:26: error: grass/raster.h: No such file or
directory
local_proto.h:6:23: error: grass/gis.h: No such file or
directory
In file included from fuzzy.c:2:
local_proto.h:36: error: expected ‘)’ before ‘cell’
fuzzy.c:4: error: expected ‘)’ before ‘cell’
lipo: can't figure out the architecture type of: /var/folder
s/kd/kdoDqWZZEbOKmz4Jf+VB4++++TM/-Tmp-//ccNLMHls.out
make[1]: *** [OBJ.i386-apple-darwin10.8.0/fuzzy.o] Error 1
logic.c:1:23: error: grass/gis.h: No such file or directory
logic.c:2:27: error: grass/glocale.h: No such file or
directory
make -C r.fuzzy.logic || echo /Users/admin/Documents/GRASS-GIS/Test_Location/PERMANENT/.tmp/Johannes-Snow-Leopard.local/997.0/r.fuzzy/r.fuzzy.logic >> /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/error.log
test -d OBJ.i386-apple-darwin10.8.0 || mkdir -p OBJ.i386-apple-darwin10.8.0
gcc  -g -O2   -arch i386 -arch x86_64  -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -o OBJ.i386-apple-darwin10.8.0/logic.o -c logic.c
make -C r.fuzzy.system || echo /Users/admin/Documents/GRASS-GIS/Test_Location/PERMANENT/.tmp/Johannes-Snow-Leopard.local/997.0/r.fuzzy/r.fuzzy.system >> /Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/error.log
test -d OBJ.i386-apple-darwin10.8.0 || mkdir -p OBJ.i386-apple-darwin10.8.0
gcc  -g -O2   -arch i386 -arch x86_64  -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -I/Users/admin/Documents/GRASS-Source/grass-7.0.svn_src_snapshot_2011_09_17/dist.i386-apple-darwin10.8.0/include -o OBJ.i386-apple-darwin10.8.0/fuzzylogic.o -c fuzzylogic.c
In file included from logic.c:3:
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
logic.c:1:23: error: grass/gis.h: No such file or directory
logic.c:2:27: error: grass/glocale.h: No such file or
directory
In file included from logic.c:3:
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
lipo: can't figure out the architecture type of: /var/folder
s/kd/kdoDqWZZEbOKmz4Jf+VB4++++TM/-Tmp-//cccBLTrh.out
make[1]: *** [OBJ.i386-apple-darwin10.8.0/logic.o] Error 1
In file included from fuzzylogic.c:1:
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
local_proto.h:7:27: error: grass/glocale.h: No such file or
directory
In file included from fuzzylogic.c:1:
local_proto.h:107: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:117: error: expected specifier-qualifier-list
before ‘DCELL’
local_proto.h:137: error: expected specifier-qualifier-list
before ‘FCELL’
local_proto.h:186: error: expected ‘)’ before ‘cell’
fuzzylogic.c:3: error: expected ‘)’ before ‘cell’
In file included from fuzzylogic.c:1:
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
local_proto.h:7:27: error: grass/glocale.h: No such file or
directory
In file included from fuzzylogic.c:1:
local_proto.h:107: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:117: error: expected specifier-qualifier-list
before ‘DCELL’
local_proto.h:137: error: expected specifier-qualifier-list
before ‘FCELL’
local_proto.h:186: error: expected ‘)’ before ‘cell’
fuzzylogic.c:3: error: expected ‘)’ before ‘cell’
lipo: can't figure out the architecture type of: /var/folder
s/kd/kdoDqWZZEbOKmz4Jf+VB4++++TM/-Tmp-//ccYze1gs.out
make[1]: *** [OBJ.i386-apple-darwin10.8.0/fuzzylogic.o]
Error 1
Installing 'r.fuzzy'...
make: *** No rule to make target `install'.  Stop.
Installation failed, sorry. Please check above error messages.
(Wed Oct  5 12:49:31 2011) Command finished (37 sec)                            
(Wed Oct  5 13:01:33 2011) 

Maybe this helps you analysing the problem. Is there any plan when g.extension should work on Mac as well as on Windows?

Thank you

Best regard
Johannes


-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the grass-user mailing list