[GRASS-dev] GRASS 7 add-ons on Mac OSX (10.9)

Anna Petrášová kratochanna at gmail.com
Fri Aug 15 08:56:56 PDT 2014


On Fri, Aug 15, 2014 at 11:07 AM, Johannes Radinger <
johannesradinger at gmail.com> wrote:

> Hi,
>
> I try to install add-ons on GRASS GIS 7 beta on Mac OSX (10.9).
> G7 has been installed including all frameworks from
> http://grassmac.wikidot.com/downloads
> (snapshot from 11.08.2014, GRASS 7.0.0svn (r61585M)).
>

I tested r.fuzzy.system on Windows and Mac and it's working for me...

This part is weird:
/bin/sh: Radinger-2668/gisrc: No such file or directory

Anna


> Now I'd like to install add-ons but neither the g.extension gui
> nor running g.extension via command line works (tested with
> 2-3 extensions)
>
> 1) via GUI:
> g.extension --verbose extension=r.fuzzy.system svnurl=
> http://svn.osgeo.org/grass/grass-addons/grass7
> 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/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
> A    r.fuzzy.system/r.fuzzy.system.html
>  U   r.fuzzy.system
> Checked out revision 61649.
> Compiling...
> mkdir -p
> /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/bin
> mkdir -p
> /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/etc/r.fuzzy.system
> mkdir -p
> /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/docs/html
> mkdir -p
> /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/docs/man/man1
> test -d OBJ.x86_64-apple-darwin13.3.0 || mkdir -p
> OBJ.x86_64-apple-darwin13.3.0
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/fuzzylogic.o -c fuzzylogic.c
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/helpers.o -c helpers.c
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/io.o -c io.c
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/main.o -c main.c
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/map_parser.o -c map_parser.c
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/rule_parser.o -c rule_parser.c
> gcc -I/usr/local/include -g -O2   -arch i386 -arch x86_64
>  -I/usr/local/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
>  -DPACKAGE=\""grassmods"\"
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include
> -I/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/include -o
> OBJ.x86_64-apple-darwin13.3.0/system.o -c system.c
> system.c:122:11: warning: 7 enumeration values not handled
> in switch: 't_START', 't_IS_NOT', 't_IS'... [-Wswitch]
>                 switch (operator_stack[opr_top]) {
>                         ^
> : && gcc -L/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib
> -L/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib -arch i386 -arch
> x86_64    -L/usr/local/lib   -o
> /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/bin/r.fuzzy.system
> OBJ.x86_64-apple-darwin13.3.0/fuzzylogic.o
> OBJ.x86_64-apple-darwin13.3.0/helpers.o OBJ.x86_64-apple-darwin13.3.0/io.o
> OBJ.x86_64-apple-darwin13.3.0/main.o
> OBJ.x86_64-apple-darwin13.3.0/map_parser.o
> OBJ.x86_64-apple-darwin13.3.0/rule_parser.o
> OBJ.x86_64-apple-darwin13.3.0/system.o    -lgrass_raster.7.0.0svn
> -lgrass_gis.7.0.0svn
> 1 warning generated.
> system.c:122:11: warning: 7 enumeration values not handled
> in switch: 't_START', 't_IS_NOT', 't_IS'... [-Wswitch]
>                 switch (operator_stack[opr_top]) {
>                         ^
> 1 warning generated.
> /bin/sh: Radinger-2668/gisrc: No such file or directory
> make: *** [r.fuzzy.system.tmp.html] Error 1
> ERROR: Compilation failed, sorry. Please check above error messages.
> if [
> "/var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/bin/r.fuzzy.system"
> != "" ] ; then
> GISRC=/var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/grass7-Johannes
> Radinger-2668/gisrc
> GISBASE=/Applications/GRASS/GRASS-7.0.app/Contents/MacOS
> PATH="/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/bin:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/bin:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/scripts:$PATH"
> PYTHONPATH="/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc/python:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/gui/wxpython:$PYTHONPATH"
> DYLD_LIBRARY_PATH="/var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/bin:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/scripts:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib:/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib:/Users/Johannes
> Radinger/Library/GRASS/7.0/Modules/lib:/Library/GRASS/7.0/Modules/lib"
> LC_ALL=C
> /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmptRWIEo/r.fuzzy.system/bin/r.fuzzy.system
> --html-description < /dev/null | grep -v '</body>\|</html>' >
> r.fuzzy.system.tmp.html ; fi
> rm r.fuzzy.system.tmp.html
>
>
>  2) command line:
>
> GRASS 7.0.0svn (Test_XY):~ > g.extension extension=r.fuzzy.system
>
> Fetching <r.fuzzy.system> from GRASS-Addons SVN (be patient)...
>
> Compiling...
>
> *system.c:122:11: **warning: **7 enumeration values not handled in
> switch: 't_START',*
>
> *      't_IS_NOT', 't_IS'... [-Wswitch]*
>
>                 switch (operator_stack[opr_top]) {
>
> *                        ^*
>
> 1 warning generated.
>
> *system.c:122:11: **warning: **7 enumeration values not handled in
> switch: 't_START',*
>
> *      't_IS_NOT', 't_IS'... [-Wswitch]*
>
>                 switch (operator_stack[opr_top]) {
>
> *                        ^*
>
> 1 warning generated.
>
> /bin/sh: Radinger-2668/gisrc: No such file or directory
>
> make: *** [r.fuzzy.system.tmp.html] Error 1
>
> FEHLER: Compilation failed, sorry. Please check above error messages.
>
>
>
> For other add-ons I get also error messages. E.g. for r.fidimo (python
> add-on)
>
> I get:
>
>
> GRASS 7.0.0svn (Test_XY):~ > g.extension extension=r.fidimo
>
> Fetching <r.fidimo> from GRASS-Addons SVN (be patient)...
>
> Compiling...
>
> /bin/sh: Radinger-2668/gisrc: No such file or directory
>
> make: *** [r.fidimo.tmp.html] Error 1
>
> FEHLER: Compilation failed, sorry. Please check above error messages.
>
>
> Any suggestion. Do I need to install add-ons differently on a Mac, or
>
> is this feature broken at the moment?
>
>
> /Johannes
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140815/d4d219cc/attachment.html>


More information about the grass-dev mailing list