我正在尝试在我的Ubuntu电脑上安装Gosu。我尝试使用“gem install gosu”命令安装gem,但是我遇到了一个错误,我无法解决。它说“无法构建本地扩展的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
gosu
而不是goso
:) - WarHog