<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FWyatt</id>
	<title>GRASS-Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FWyatt"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/wiki/Special:Contributions/%E2%9A%A0%EF%B8%8FWyatt"/>
	<updated>2026-05-25T21:19:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Compiling_on_macOS_using_Homebrew&amp;diff=24917</id>
		<title>Compiling on macOS using Homebrew</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Compiling_on_macOS_using_Homebrew&amp;diff=24917"/>
		<updated>2017-12-14T22:15:09Z</updated>

		<summary type="html">&lt;p&gt;⚠️Wyatt: /* GRASS 7.2 */ Change Homebrew package name from grass-70 to grass7&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is [http://brew.sh/ homebrew] and why use it ==&lt;br /&gt;
&lt;br /&gt;
To quote from their website:&lt;br /&gt;
&lt;br /&gt;
[http://brew.sh/ Homebrew is the missing package manager for OS X]:&lt;br /&gt;
* easy to install&lt;br /&gt;
* does not need administrator privileges&lt;br /&gt;
* installs packages to their own directory and then symlinks their files into /usr/local&lt;br /&gt;
&lt;br /&gt;
For further information to install it and how to use it, see the [http://brew.sh/ Homebrew website] and the [https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew#readme Wiki].&lt;br /&gt;
&lt;br /&gt;
The formulas to install programs are called recipes and they make it possible to install several version of the same program (as well as HEAD of different Version Control Systems) at the same time which can then be symlinked.&lt;br /&gt;
This makes it perfect for the purpose of in=stalling HEAD of GRASS GIS for testing purposes.&lt;br /&gt;
&lt;br /&gt;
== GRASS 7.2 ==&lt;br /&gt;
&lt;br /&gt;
If you have a 3rd party Python installed, and/or Python 3, you need to remove it from your path for the installation. Once installed, GRASS will run even if the primary Python is, for example, Anaconda Python 3.&lt;br /&gt;
&lt;br /&gt;
Display the current path, and remove any folders or directories that provide access to the non-system python2.7:&lt;br /&gt;
    echo $PATH&lt;br /&gt;
    #  ~/local/anaconda/bin:/Users/MyName/bin:/usr/local/bin:/usr/bin/sbin&lt;br /&gt;
Reset path&lt;br /&gt;
    PATH=/usr/local/bin:/usr/bin/sbin&lt;br /&gt;
Set GRASS python&lt;br /&gt;
    export GRASS_PYTHON=/System/Library/Frameworks/Python.framework/Versions/Current/bin/pythonw&lt;br /&gt;
&lt;br /&gt;
Install packages with Brew&lt;br /&gt;
    brew tap osgeo/osgeo4mac&lt;br /&gt;
    brew install netcdf&lt;br /&gt;
    brew install gdal2 --with-complete --with-unsupported&lt;br /&gt;
    export GDAL_DATA=/usr/local/opt/gdal2/share/gdal/   &lt;br /&gt;
    # Also add the above line to ~/.bash_profile, ~/.bashrc, or some other login script&lt;br /&gt;
    brew install grass7 --with-netcdf&lt;br /&gt;
    brew install gdal2-grass7&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
# PATH adjustments are only needed during installation. After installation, the PATH can return to its default value and GRASS works fine. &lt;br /&gt;
# There may be other brew dependencies that were installed previously and therefore not listed here.&lt;br /&gt;
&lt;br /&gt;
== How to install GRASS GIS 7.1 SVN Head ==&lt;br /&gt;
I assume that homebrew is installed and working.&lt;br /&gt;
&lt;br /&gt;
Different recipes are organized in so called taps which need to be added to homebrew by using '''''brew tap''''' command. The GRASS GIS 7.1 recipes are in the following github repo:&lt;br /&gt;
&lt;br /&gt;
https://github.com/rkrug/homebrew-head-only&lt;br /&gt;
&lt;br /&gt;
In addition, GRASS GIS has dependencies which can be found in the homebrew/science tap.&lt;br /&gt;
&lt;br /&gt;
To add these two to homebrew, one has to use the commands&lt;br /&gt;
&lt;br /&gt;
      brew tap rkrug/head-only  &lt;br /&gt;
      brew tap homebrew/science&lt;br /&gt;
      brew update&lt;br /&gt;
&lt;br /&gt;
If you want to use the option '''--with-liblas''' make sure that '''liblas''' is build using the correct installed version of gdal by running&lt;br /&gt;
&lt;br /&gt;
      brew install liblas&lt;br /&gt;
      brew install --build-from-source liblas&lt;br /&gt;
&lt;br /&gt;
The first comand installs from bottles (binary) when available, and the second command reinstalls '''liblas''' by building it from source, therby using installed dependencies.&lt;br /&gt;
&lt;br /&gt;
Otherwise you might get the following error when using the option '''--with-liblas''':&lt;br /&gt;
&lt;br /&gt;
      checking whether to use libLAS... yes&lt;br /&gt;
      checking for liblas-config... /usr/local/opt/liblas/bin/liblas-config&lt;br /&gt;
      configure: error: *** Unable to locate libLAS library.&lt;br /&gt;
&lt;br /&gt;
Thanks to Glynn Clements for identifying this error (see [http://article.gmane.org/gmane.comp.gis.grass.devel/65254 the mail on gmane]).&lt;br /&gt;
&lt;br /&gt;
Finally, GRASS 7.1 SVN can be installed by&lt;br /&gt;
&lt;br /&gt;
      brew install --HEAD grass-71&lt;br /&gt;
&lt;br /&gt;
This should be it.&lt;br /&gt;
&lt;br /&gt;
If this does not work, please leave comments at [https://github.com/rkrug/homebrew-head-only/issues the issues page of the tap] or at the grass-dev mailing list.&lt;br /&gt;
&lt;br /&gt;
== GRASS GIS 7.0.x for El Capitan without disabling SIP ==&lt;br /&gt;
The new homebrew recipe for GRASS 7.0 does install on El Capitan with SIP enabled! This is thanks to Larry Shaffer. See&lt;br /&gt;
https://github.com/OSGeo/homebrew-osgeo4mac/issues/118#issuecomment-200278686&lt;br /&gt;
&lt;br /&gt;
The recipe is part of the Homebrew-osgeo4mac tap, see&lt;br /&gt;
&lt;br /&gt;
https://github.com/OSGeo/homebrew-osgeo4mac&lt;br /&gt;
&lt;br /&gt;
for info on how to use them.&lt;br /&gt;
&lt;br /&gt;
== From here==&lt;br /&gt;
* There is an [https://github.com/OSGeo/homebrew-osgeo4mac osgeo4mac] which contains recipes for GRASS GIS 6.4 and 7.0 and other GIS tools - highly re=commendable tap!&lt;br /&gt;
* by running&lt;br /&gt;
      brew test -v grass-71&lt;br /&gt;
you can run GRASS GIS tests but they are not implemented as they should be - work in progress.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>⚠️Wyatt</name></author>
	</entry>
</feed>