Skip to content

Instantly share code, notes, and snippets.

Created Nov 10, 2011
What would you like to do?
Updating the Homebrew formula for geos, when Mac OS X Lion complains about LLVM / gcc-4.2
require 'formula'
class Geos < Formula
url ''
homepage ''
md5 'b1ceefe205c9ee520b99f2b072c345f7'
def skip_clean? path
path.extname == '.la'
fails_with_llvm "Some symbols are missing during link step."
def install
# Force CLang instead of LLVM-GCC on Lion:
ENV.clang if MacOS.lion?
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
If installing PostGIS or GEOS fails with a complain about LLVM / gcc-4.2, then you may need to update the recipe for home-brew's geos.
`brew edit geos`
Then paste the contents of the file below into the editor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment