我正在尝试安装 Snorby(显然),并且在使用同一个 gem 时不断遇到错误。每次我尝试在 snorby 目录中执行 sudo bundle install 时,都会收到以下错误:
Installing RedCloth (4.2.9) with native extensions /usr/local/lib/site_ruby/1.9.1/rubygems/installer.rb:556:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.9.1 extconf.rb
/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from extconf.rb:1:in `'
我已经尝试了我所看到和知道的一切。我试图安装它的早期版本。我试过 gem upate。我试过 sudo gem install Redcloth -v 。然后它告诉我同样的连续错误。无法构建 gem 原生扩展。没有任何工作。非常感谢所有帮助!