Skip to content

Instantly share code, notes, and snippets.

@hamishhossack
Forked from eparreno/gist:1845561
Created October 20, 2015 15:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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