我正在尝试为我的 Ruby on Rails 应用程序安装 CarrierWave gem。当我转到命令提示符并键入时,sudo gem install carrierwave
我收到以下错误:
Building native extensions. This could take a while...
ERROR: Error installing carrierwave:
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:13:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.13 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.13/ext/gem_make.out
这到底是什么意思,我该如何解决?
谢谢,任何帮助表示赞赏。