Skip to content

Instantly share code, notes, and snippets.

@hamishhossack
Forked from eparreno/gist:1845561
Created October 20, 2015 15:05
Show Gist options
  • Save hamishhossack/96f8b6f766934d85c2d4 to your computer and use it in GitHub Desktop.
Save hamishhossack/96f8b6f766934d85c2d4 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