我正在尝试在我的 Ubuntu 计算机上安装 Gosu。要安装 gem,我尝试了“gem install gosu”,但收到一条错误消息,我无法弄清楚。它说“无法构建 gem 原生扩展”。
有谁知道我能做什么?我对 Ruby 有点陌生,所以它可能需要对 RVM 做些什么..?我不确定。
这是完整的错误消息:
Fetching: gosu-0.8.6.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
/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:63:in `<main>'
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
Gem files will remain installed in /var/lib/gems/1.9.1/gems/gosu-0.8.6 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/gosu-0.8.6/ext/gosu/gem_make.out