I needed gem ruby-filemagic for some requirements in my project. While running bundle install its giving me this error
*** ERROR: missing required library to compile this module
*** extconf.rb failed ***
Please help me with this problem.
sudo apt-get install libmagic-dev
did it for me
Running brew install libmagic
before gem install ruby-filemagic
on OSX made my installation of ruby-filemagic successful.
If you install gem ruby-filemagic on an EC2 instance, login as root and use this command
yum install file file-devel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With