我正在尝试使用
在debian中安装gemgem install typhoeus
但我只是不断收到此错误消息。我尝试了一些东西,但它们显然没有用。可以使用一些想法,我是unix和ruby的新手,所以很容易=)
root@asdf:/home/asdf# gem install typhoeus
Fetching: ffi-1.9.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 -r ./siteconf20140719-30469-1rufzif.rb extconf.rb
/usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- mkmf (LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
from extconf.rb:4:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/ffi-1.9.3 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/extensions/x86-linux/1.9.1/ffi-1.9.3/gem_make.out
这是来自github的gem: https://github.com/typhoeus/typhoeus
答案 0 :(得分:2)
在这里查看答案......
`require': no such file to load -- mkmf (LoadError)
似乎您需要在系统上安装ruby开发包。您应该可以使用...
执行此操作$ dpkg --install ruby1.9.1-dev.deb
...或...
$ apt-get install ruby1.9.1-dev