我需要gem ruby-filemagic来满足我项目中的一些要求。我把它包含在我的Gemfile中,当我运行bundle install时,它给了我这个错误
*** ERROR: missing required library to compile this module
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
请帮我解决此问题。
答案 0 :(得分:2)
您可能需要安装libmagic才能正常工作,因为这是它使用的基础库。实际说明因发行版和发行版而异,因此如果您需要安装libmagic本身的帮助,则需要向我们提供有关您的操作系统的更多信息。