[GRASS-user] Installing addon's using g.extension on Mac OSX 10.7.5?

I am pretty new to GRASS but I seem to be slowly getting myself wrapped around how to work it. Unfortunately I could really use the r.stream addons but can't seem to install them. I've tried every way I can think of to run g.extension both through the qGIS GRASS command as well as in standalone GRASS 6.4.3. I get "ERROR: The 'make' program is required. Please install first."

I've found a thread on here from Oct 2013 saying that this issue was, at one time, fixed for someone running OSX 10.8 (http://lists.osgeo.org/pipermail//grass-user/2013-October/069133.html) and looking at the development wikis there are some bug reports about this error but I can't figure out conclusively whether they are fixed.

I've found this blog post showing a way to modify the modules directory so that addons can be added but it is older than the email thread and I wanted to get input before I start modifying things based upon it. (http://digitalelevation.wordpress.com/2012/06/07/installing-grass-add-ons-on-mac-osx/). There is also mention in the email thread above that there is a readme file with instructions on how to compile addons for OSX but that readme isn't included in the Kyngchaos.com download as mentioned and I can't otherwise seem to find it.

Any help or advice would be much appreciated!

Thanks, Jens Hegg

g.extension should work. The main key is that you need to install the Xcode command line tools. This can be done either from the Xcode app (free from app store), or by downloading the command line tools installer separately (from an Apple developer account).

The old "modbuild" thing could still work but g.extension is better. The readme mentioned is probably the modbuild readme, which doesn't help you with g.extension.

On Jan 31, 2014, at 7:50 PM, Jens Hegg wrote:

I am pretty new to GRASS but I seem to be slowly getting myself wrapped around how to work it. Unfortunately I could really use the r.stream addons but can't seem to install them. I've tried every way I can think of to run g.extension both through the qGIS GRASS command as well as in standalone GRASS 6.4.3. I get "ERROR: The 'make' program is required. Please install first."

I've found a thread on here from Oct 2013 saying that this issue was, at one time, fixed for someone running OSX 10.8 (http://lists.osgeo.org/pipermail//grass-user/2013-October/069133.html) and looking at the development wikis there are some bug reports about this error but I can't figure out conclusively whether they are fixed.

I've found this blog post showing a way to modify the modules directory so that addons can be added but it is older than the email thread and I wanted to get input before I start modifying things based upon it. (http://digitalelevation.wordpress.com/2012/06/07/installing-grass-add-ons-on-mac-osx/). There is also mention in the email thread above that there is a readme file with instructions on how to compile addons for OSX but that readme isn't included in the Kyngchaos.com download as mentioned and I can't otherwise seem to find it.

Any help or advice would be much appreciated!

Thanks, Jens Hegg

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

Installing Xcode command line tools through Xcode worked in the standalone GRASS version! I can now get to work on finishing this manuscript! Thanks.

Two things to keep in mind for those following after me.

1) The entire file path can't have spaces or g.extension fails, which meant having to shift things around into a GRASS only file. No biggie and the error tells you what the problem is.
2) This does not work in qGIS. I do not get the same error, instead I get an error saying that the make file directory doesn't exist and it can't be automatically generated:

"Makefile:13: /Applications/QGIS.app/Contents/MacOS/grass/include/Make/Module.make: no such file or directory
make: *** No Rule to make target '/Applications/QGIS.app/Contents/MacOS/grass/include/Make/Module.make'. Stop
ERROR: Compilation failed, sorry. Please check above error messages."

Does this mean that if I go into the app and add the directory and Module.make this will work, or do I need to change the directory to point outside the app? I would love to have this functionality inside qGIS.

Also, extending GRASS is kindof an important part of the project correct? If g.extension is the way to do that and it isn't functional without Xcode command line tools, shouldn't that be listed as a dependency? I guess it's optional, but so is R and it is listed as such on the OSX download page. The R functionality, BTW, is an awesome addition that I am looking forward to playing with!

Jens

On Jan 31, 2014, at 9:33 PM, William Kyngesburye wrote:

g.extension should work. The main key is that you need to install the Xcode command line tools. This can be done either from the Xcode app (free from app store), or by downloading the command line tools installer separately (from an Apple developer account).

The old "modbuild" thing could still work but g.extension is better. The readme mentioned is probably the modbuild readme, which doesn't help you with g.extension.

On Jan 31, 2014, at 7:50 PM, Jens Hegg wrote:

I am pretty new to GRASS but I seem to be slowly getting myself wrapped around how to work it. Unfortunately I could really use the r.stream addons but can't seem to install them. I've tried every way I can think of to run g.extension both through the qGIS GRASS command as well as in standalone GRASS 6.4.3. I get "ERROR: The 'make' program is required. Please install first."

I've found a thread on here from Oct 2013 saying that this issue was, at one time, fixed for someone running OSX 10.8 (http://lists.osgeo.org/pipermail//grass-user/2013-October/069133.html) and looking at the development wikis there are some bug reports about this error but I can't figure out conclusively whether they are fixed.

I've found this blog post showing a way to modify the modules directory so that addons can be added but it is older than the email thread and I wanted to get input before I start modifying things based upon it. (http://digitalelevation.wordpress.com/2012/06/07/installing-grass-add-ons-on-mac-osx/). There is also mention in the email thread above that there is a readme file with instructions on how to compile addons for OSX but that readme isn't included in the Kyngchaos.com download as mentioned and I can't otherwise seem to find it.

Any help or advice would be much appreciated!

Thanks, Jens Hegg

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

On Feb 3, 2014, at 4:57 PM, Jens Hegg wrote:

Installing Xcode command line tools through Xcode worked in the standalone GRASS version! I can now get to work on finishing this manuscript! Thanks.

Two things to keep in mind for those following after me.

1) The entire file path can't have spaces or g.extension fails, which meant having to shift things around into a GRASS only file. No biggie and the error tells you what the problem is.

If you use the standard user extension path, it should be OK. /Users/yourusername/Library/GRASS/6.4/Modules. This should be the default if you use the $GRASS_ADDON_PATH prefix (which is the default). The recommended global path is /Library/GRASS/6.4/Modules (you need to use the -s or -u options).

2) This does not work in qGIS. I do not get the same error, instead I get an error saying that the make file directory doesn't exist and it can't be automatically generated:

"Makefile:13: /Applications/QGIS.app/Contents/MacOS/grass/include/Make/Module.make: no such file or directory
make: *** No Rule to make target '/Applications/QGIS.app/Contents/MacOS/grass/include/Make/Module.make'. Stop
ERROR: Compilation failed, sorry. Please check above error messages."

Does this mean that if I go into the app and add the directory and Module.make this will work, or do I need to change the directory to point outside the app? I would love to have this functionality inside qGIS.

I didn't bundle GRASS in QGIS to be extendable. Access to GRASS functions is preprogrammed into the GRASS and Processing plugins. You can run arbitrary GRASS commands in the GRASS console, but I'm not sure how well that works with extensions.

Module.make is just the first file it fails to find, there are many more and one that depends on the location of GRASS in QGIS.app (you couldn't copy the GRASS.app makefiles into QGIS/GRASS).

Also, extending GRASS is kindof an important part of the project correct? If g.extension is the way to do that and it isn't functional without Xcode command line tools, shouldn't that be listed as a dependency? I guess it's optional, but so is R and it is listed as such on the OSX download page. The R functionality, BTW, is an awesome addition that I am looking forward to playing with!

Jens

On Jan 31, 2014, at 9:33 PM, William Kyngesburye wrote:

g.extension should work. The main key is that you need to install the Xcode command line tools. This can be done either from the Xcode app (free from app store), or by downloading the command line tools installer separately (from an Apple developer account).

The old "modbuild" thing could still work but g.extension is better. The readme mentioned is probably the modbuild readme, which doesn't help you with g.extension.

On Jan 31, 2014, at 7:50 PM, Jens Hegg wrote:

I am pretty new to GRASS but I seem to be slowly getting myself wrapped around how to work it. Unfortunately I could really use the r.stream addons but can't seem to install them. I've tried every way I can think of to run g.extension both through the qGIS GRASS command as well as in standalone GRASS 6.4.3. I get "ERROR: The 'make' program is required. Please install first."

I've found a thread on here from Oct 2013 saying that this issue was, at one time, fixed for someone running OSX 10.8 (http://lists.osgeo.org/pipermail//grass-user/2013-October/069133.html) and looking at the development wikis there are some bug reports about this error but I can't figure out conclusively whether they are fixed.

I've found this blog post showing a way to modify the modules directory so that addons can be added but it is older than the email thread and I wanted to get input before I start modifying things based upon it. (http://digitalelevation.wordpress.com/2012/06/07/installing-grass-add-ons-on-mac-osx/). There is also mention in the email thread above that there is a readme file with instructions on how to compile addons for OSX but that readme isn't included in the Kyngchaos.com download as mentioned and I can't otherwise seem to find it.

Any help or advice would be much appreciated!

Thanks, Jens Hegg

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

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

I am not sure if my issue is related in any way to that of the original post
but at least it seems similar.

I am trying to add a non-standard grass module to my mac-installation (grass
6.4 by kyngchaos, Mac OS 10.9.1). The module in question is not listed in
g.extension so this does not seem to be an option. Therefore, I am trying to
compile it from scratch; from my little knowledge, the makefile seems quite
standard. Still, after some tinkering which let me to add the paths to
MODULE_TOPDIR (the original "../.." failed) and the newest SDKs, I got the
error message quoted below. it is obviously path-related but I have no idea
how to resolve it.
Any hints are appreciated!

Nils

$ make MODULE_TOPDIR=/Applications/GRASS-6.4.app/Contents/MacOS
/Applications/GRASS-6.4.app/Contents/MacOS/include/Make/Module.make:25:
warning: overriding commands for target `install'
/Applications/GRASS-6.4.app/Contents/MacOS/include/Make/Rules.make:90:
warning: ignoring old commands for target `install'
gcc
-I/Users/Shared/src/GRASS/grass-6.4.2-snow/dist.i386-apple-darwin11.4.0/include
-Os -fexceptions -arch i386 -arch x86_64 -isysroot
/Developer/SDKs/MacOSX10.6.sdk -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-DPACKAGE=\""grassmods"\"
-I/Users/Shared/src/GRASS/grass-6.4.2-snow/dist.i386-apple-darwin11.4.0/include
-o OBJ.i386-apple-darwin11.4.0/cell_funcs.o -c cell_funcs.c
cell_funcs.c:22:10: fatal error: 'grass/gis.h' file not found
#include <grass/gis.h>
         ^
1 error generated.
make: *** [OBJ.i386-apple-darwin11.4.0/cell_funcs.o] Error 1

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Installing-addon-s-using-g-extension-on-Mac-OSX-10-7-5-tp5101308p5105379.html
Sent from the Grass - Users mailing list archive at Nabble.com.