Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amitdeshmukh/801da41352f1411441e66a1edb863f49 to your computer and use it in GitHub Desktop.
Save amitdeshmukh/801da41352f1411441e66a1edb863f49 to your computer and use it in GitHub Desktop.
Install libmagic on Mac OS X via homebrew
$ brew install libmagic
$ brew link libmagic (if the link is already created is going to fail, don't worry about that)
$ env ARCHFLAGS="-arch x86_64" gem install ruby-filemagic -- --with-magic-include=/usr/local/include --with-magic-lib=/usr/local/lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment