[GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1)

Guillaume.Duclaux at csiro.au Guillaume.Duclaux at csiro.au
Tue Aug 16 12:08:01 EDT 2011


Hi GRASS gurus,

I've been trying to install the r.fuzzy.system add-on to my GRASS' local copy (Mac OSX 10.6.8, binary installed from: http://www.kyngchaos.com/software/grass - thanks for the installer btw!).

Unfortunately I had no luck with compiling and installing the add-on yet.
I've tried 2 approaches:
* the g.extension add-on manager
* and brutal force (svn co + make)
See details below.

In the GUI, using the add-on extension manager, I get the following errors:

g.extension extension=r.fuzzy.system svnurl=https://svn.osgeo.org/grass/grass-addons
Fetching <r.fuzzy.system> from GRASS-Addons SVN (be patient)...
A    r.fuzzy.system/flood.map
A    r.fuzzy.system/helpers.c
A    r.fuzzy.system/local_proto.h
A    r.fuzzy.system/flood.rul
A    r.fuzzy.system/rule_parser.c
A    r.fuzzy.system/main.c
A    r.fuzzy.system/system.c
A    r.fuzzy.system/description.html
A    r.fuzzy.system/f_result.png
A    r.fuzzy.system/fuzzylogic.c
A    r.fuzzy.system/io.c
A    r.fuzzy.system/map_parser.c
A    r.fuzzy.system/Makefile
 U   r.fuzzy.system
Checked out revision 47679.
Compiling <r.fuzzy.system>...
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include/grass
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/etc
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/driver
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/driver/db
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/fonts
test -d OBJ.i386-apple-darwin10.7.0 || mkdir -p OBJ.i386-apple-darwin10.7.0
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/fuzzylogic.o -c fuzzylogic.c
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/helpers.o -c helpers.c
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/io.o -c io.c
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/main.o -c main.c
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/map_parser.o -c map_parser.c
map_parser.c: In function ‘parse_map_file’:
map_parser.c:43: warning: unknown conversion type character
‘>’ in format
map_parser.c: In function ‘parse_map_file’:
map_parser.c:43: warning: unknown conversion type character
‘>’ in format
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/rule_parser.o -c rule_parser.c
gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/system.o -c system.c
ld: warning: directory '/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/lib' following -L not found
ld: warning: directory '/usr/local/pgsql-9.0/lib' following -L not found
ld: warning: directory '/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/lib' following -L not found
ld: warning: directory '/usr/local/pgsql-9.0/lib' following -L not found
gcc -L/Applications/GRASS-6.4.app/Contents/MacOS/lib -L/Applications/GRASS-6.4.app/Contents/MacOS/lib -L/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/lib -arch i386 -arch x86_64   -arch i386 -arch x86_64  -L/usr/local/pgsql-9.0/lib   -o /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin/r.fuzzy.system OBJ.i386-apple-darwin10.7.0/fuzzylogic.o OBJ.i386-apple-darwin10.7.0/helpers.o OBJ.i386-apple-darwin10.7.0/io.o OBJ.i386-apple-darwin10.7.0/main.o OBJ.i386-apple-darwin10.7.0/map_parser.o OBJ.i386-apple-darwin10.7.0/rule_parser.o OBJ.i386-apple-darwin10.7.0/system.o  -lgrass_rowio -lgrass_gis -lgrass_datetime -lz      -lz
make htmlcmd
make /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html/r.fuzzy.system.html HTMLSRC=/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin/r.fuzzy.system
if [ "/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin/r.fuzzy.system" != "" ] ; then GISRC=/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/demolocation/.grassrc64 GISBASE=/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0 PATH="/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin:$PATH" DYLD_LIBRARY_PATH="/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin:/Applications/GRASS-6.4.app/Contents/MacOS/lib:/Applications/GRASS-6.4.app/Contents/MacOS/lib:/Users/duc025/Library/GRASS/6.4/Modules/lib:/Library/GRASS/6.4/Modules/lib:/Applications/ImageMagick-6.6.3/lib" LC_ALL=C /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin/r.fuzzy.system --html-description < /dev/null | grep -v '</body>\|</html>' > r.fuzzy.system.tmp.html ; true ; fi
/Applications/GRASS-6.4.app/Contents/MacOS/tools/mkhtml.sh r.fuzzy.system ; mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html ; /usr/bin/install -c  -m 644 r.fuzzy.system.tmp.html /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html/r.fuzzy.system.html ; for file in  *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c  -m 644 $file /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html ; fi done 2> /dev/null ; true
make mancmd
make /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/man/man1/r.fuzzy.system.1 MANSRC=/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html/r.fuzzy.system.html
ERROR: G_getenv(): Variable LOCATION_NAME not set
Installing <r.fuzzy.system>...
You need to enter the root password next to install r.fuzzy.system:
su: illegal option -- c
usage: su [-] [-flm] [login [args]]
mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.1 sh /Applications/GRASS-6.4.app/Contents/MacOS/tools/g.html2man/g.html2man /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html/r.fuzzy.system.html /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/man/man1/r.fuzzy.system.1 1
Converting: /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/docs/html/r.fuzzy.system.html to /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/man/man1/r.fuzzy.system.1
ERROR: Installation failed, sorry. Please check above error messages.


Then, in a terminal, after checking out the source files for the r.fuzzy.system add-on from svn, got the following errors:

GRASS 6.4.1 (newLocation):~/grass/fuzzySystem/r.fuzzy.system > make MODULE_TOPDIR=/Applications/GRASS-6.4.app/Contents/MacOS/
test -d OBJ.i386-apple-darwin10.7.0 || mkdir -p OBJ.i386-apple-darwin10.7.0
gcc -I/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include -o OBJ.i386-apple-darwin10.7.0/fuzzylogic.o -c fuzzylogic.c
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:27: error: grass/glocale.h: No such file or directory
In file included from fuzzylogic.c:1:
local_proto.h:106: error: expected specifier-qualifier-list before ‘RASTER_MAP_TYPE’
local_proto.h:116: error: expected specifier-qualifier-list before ‘DCELL’
local_proto.h:136: error: expected specifier-qualifier-list before ‘FCELL’
local_proto.h:185: 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:27: error: grass/glocale.h: No such file or directory
In file included from fuzzylogic.c:1:
local_proto.h:106: error: expected specifier-qualifier-list before ‘RASTER_MAP_TYPE’
local_proto.h:116: error: expected specifier-qualifier-list before ‘DCELL’
local_proto.h:136: error: expected specifier-qualifier-list before ‘FCELL’
local_proto.h:185: error: expected ‘)’ before ‘cell’
fuzzylogic.c:3: error: expected ‘)’ before ‘cell’
lipo: can't figure out the architecture type of: /var/folders/F1/F1w0tzFYEbiJcYgLf9+Mh++++TI/-Tmp-//cchVfFcE.out
make: *** [OBJ.i386-apple-darwin10.7.0/fuzzylogic.o] Error 1


I found a few posts that seem to highlight similar issues on various architectures: http://trac.osgeo.org/grass/ticket/620, http://comments.gmane.org/gmane.comp.gis.grass.user/39745
But I didn't find the solution.

Hopefully someone will be able to help me here... I'm kind of stuck!

Cheers

Guillaume


Dr Guillaume Duclaux

Research Scientist
CSIRO Earth Science and Resource Engineering

Phone: +61 8 6436 8728  | Fax: +61 8 6436 8559  | Mobile:  +61 459 835 992

guillaume.duclaux at csiro.au<mailto:guillaume.duclaux at csiro.au> | www.csiro.au<http://www.csiro.au/> |
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151

PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

Please consider the environment before printing this email.







More information about the grass-user mailing list