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

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)).

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 ‘|’ > r.fuzzy.system.tmp.html ; fi
rm r.fuzzy.system.tmp.html

  1. 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

On Fri, Aug 15, 2014 at 11:07 AM, Johannes Radinger <
johannesradinger@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Fri, Aug 15, 2014 at 5:56 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Fri, Aug 15, 2014 at 11:07 AM, Johannes Radinger
<johannesradinger@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

It simply comes from the white space in the path (and above shows only
the second part):

...
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

--> "...Johannes Radinger..."

So some proper quoting will be missing.

Markus

On Fri, Aug 15, 2014 at 6:07 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, Aug 15, 2014 at 5:56 PM, Anna Petrášová <kratochanna@gmail.com>
wrote:
> On Fri, Aug 15, 2014 at 11:07 AM, Johannes Radinger
> <johannesradinger@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

It simply comes from the white space in the path (and above shows only
the second part):

...
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

--> "...Johannes Radinger..."

So some proper quoting will be missing.

Which needs to be corrected within "g.extension"? Or is there anything I
can do myself from a user's point?

Johannes

Markus

Has this issue with the white space in the path (“…some proper quoting will be missing.”) bin solved in recent versions of GRASS71? Both available binaries (http://grassmac.wikidot.com/downloads from Aug 14) for GRASS70 beta and GRASS71 show this problem. Just tested again with “v.surf.icw”:

g.extension --verbose extension=v.surf.icw operation=add
Fetching <v.surf.icw> from GRASS-Addons SVN (be patient)…
A v.surf.icw/v.surf.icw.html
A v.surf.icw/v.surf.icw.py
A v.surf.icw/Makefile
U v.surf.icw
Checked out revision 62038.
mkdir -p /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/bin
mkdir -p /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/etc/v.surf.icw
mkdir -p /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/docs/html
mkdir -p /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/docs/man/man1
mkdir -p /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/scripts
/usr/bin/install -c v.surf.icw.py /var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/scripts/v.surf.icw
if [ “/var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/tmp9I2sSx/v.surf.icw/scripts/v.surf.icw” != “” ] ; then GISRC=/var/folders/z6/kpf8b53j04vcgq71ycrqzs040000gq/T/grass7-Johannes Radinger-477/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/tmp9I2sSx/v.surf.icw/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/tmp9I2sSx/v.surf.icw/scripts/v.surf.icw --html-description < /dev/null | grep -v ‘|’ > v.surf.icw.tmp.html ; fi
rm v.surf.icw.tmp.html
Compiling…
/bin/sh: Radinger-477/gisrc: No such file or directory
make: *** [v.surf.icw.tmp.html] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.

Is there any plan when new snapshots of GRASS71 are available on the grassmac platform?

/Johannes

···

On Fri, Aug 15, 2014 at 9:17 PM, Johannes Radinger <johannesradinger@gmail.com> wrote:

On Fri, Aug 15, 2014 at 6:07 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, Aug 15, 2014 at 5:56 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Fri, Aug 15, 2014 at 11:07 AM, Johannes Radinger
<johannesradinger@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

It simply comes from the white space in the path (and above shows only
the second part):

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

→ “…Johannes Radinger…”

So some proper quoting will be missing.

Which needs to be corrected within “g.extension”? Or is there anything I can do myself from a user’s point?

Johannes

Markus

On Sat, Sep 20, 2014 at 1:04 PM, Johannes Radinger
<johannesradinger@gmail.com> wrote:

Has this issue with the white space in the path ("...some proper quoting
will be missing.") bin solved in recent versions of GRASS71? Both available
binaries (http://grassmac.wikidot.com/downloads from Aug 14) for GRASS70
beta and GRASS71 show this problem. Just tested again with "v.surf.icw":

...

On Fri, Aug 15, 2014 at 6:07 PM, Markus Neteler <neteler@osgeo.org> wrote:

...
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

--> "...Johannes Radinger..."

So some proper quoting will be missing.

Wild guess: scripts/g.extension./g.extension.py line 757 ff:

    makeCmd = ['make',
               'MODULE_TOPDIR=%s' % gisbase.replace(' ', '\ '),
               'RUN_GISRC=%s' % os.environ['GISRC'],
               'BIN=%s' % dirs['bin'],
               'HTMLDIR=%s' % dirs['html'],
               'RESTDIR=%s' % dirs['rest'],
               'MANDIR=%s' % dirs['man'],
               'SCRIPTDIR=%s' % dirs['script'],
               'STRINGDIR=%s' % dirs['string'],
               'ETC=%s' % os.path.join(dirs['etc'], name)
    ]

    installCmd = ['make',
                  'MODULE_TOPDIR=%s' % gisbase,
                  'ARCH_DISTDIR=%s' % os.path.join(TMPDIR, name),
                  'INST_DIR=%s' % options['prefix'],
                  'install'
                  ]

Does this have anything to do with
https://docs.python.org/2/library/subprocess.html#frequently-used-arguments

"When using shell=True, pipes.quote() can be used to properly escape
whitespace and shell metacharacters in strings that are going to be
used to construct shell commands."
?

Markus