这个问题已经在这里有一个答案:
- `需要':没有这样的文件来加载- MKMF(LoadError) 9个回答
在Ubuntu的12.04,我得到了下面。
sudo apt-get install libxml2 libxml2-dev libxslt libxslt-dev
sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:5:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/nokogiri-1.5.9 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/nokogiri-1.5.9/ext/nokogiri/gem_make.out
这是红宝石的MYH版本
ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
我试图安装与刀EC2的厨师使用。