Skip to content

Instantly share code, notes, and snippets.

@pangkalizer
Forked from eparreno/gist:1845561
Created July 14, 2014 00:44
Show Gist options
  • Select an option

  • Save pangkalizer/388e8863392bebf3a0e4 to your computer and use it in GitHub Desktop.

Select an option

Save pangkalizer/388e8863392bebf3a0e4 to your computer and use it in GitHub Desktop.
$ 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