Commit 16d5ab07 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Merge pull request #609 from bollu/fix-magic-macos-install

fix macOS cabal magic installation
parents ece7e45e eadd920b
......@@ -71,6 +71,11 @@ brew install Caskroom/cask/xquartz
brew install cairo
brew install pango
# make cabal install magic, which won't work correctly if done using
# default flags, since Homebrew dumps libmagic into /usr/local/lib rather than /lib
brew_prefix=$(brew --prefix)
cabal install magic-1.1 --extra-lib "$brew_prefix/lib" --extra-include "$brew_prefix/include"
# For C compiler to pick up /usr/local and X11 stuff during Cabal builds.
# You may want to put this in your shell startup.
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment