Created
June 26, 2013 20:02
-
-
Save aboutaaron/5871095 to your computer and use it in GitHub Desktop.
Getting past an error installing gdal and postgis in Mac OS X with Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`brew install postgis` | |
But you don't have gdal installed (a dependency) so brew trys to install gdal aaand... | |
Fails with: `'gcc-4.2' failed with exit status 1` | |
Solutuion: Run brew install in verbose mode | |
`brew install -vd postgis` or `brew install -vd gdal` | |
This'll take longer but will prompt you with the error causing postgis to hang: | |
``` | |
BuildError: Failed executing: /usr/local/bin/python setup.py install --prefix=/usr/local/Cellar/gdal/1.10.0 --record=installed.txt --single-version-externally-managed | |
1. raise | |
2. ignore | |
3. backtrace | |
4. shell | |
Choose an action: | |
``` | |
Hit `2` to ignore this error and gdal will install! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment