Seth Woodworth edited this page Jul 22, 2013 · 4 revisions
Clone this wiki locally

to install the gem
> gem install ruby-filemagic

Don’t forget before to
> apt-get install libmagic-dev

On fedora
> yum install file-devel

For Mac:

  1. using macports, install the ‘file’ package
  2. use the following gem command: gem install ruby-filemagic — —with-opt-dir=/opt/local