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

Jens Hegg jensenhegg at gmail.com
Mon Feb 3 14:57:12 PST 2014

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!


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 at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user

More information about the grass-user mailing list