Skip to content
Advertisement

Missing library while installing ruby-filemagic gem on Linux

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.

Advertisement

Answer

sudo apt-get install libmagic-dev did it for me

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement