为rails安装CarrierWave gem时出错

时间:2013-09-03 13:30:17

标签: ruby-on-rails

我正在尝试为我的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

这究竟是什么意思,我该如何解决?

谢谢,任何帮助表示赞赏。

1 个答案:

答案 0 :(得分:0)

这里有很多建议:`require': no such file to load -- mkmf (LoadError)

总的来说,听起来你可能需要安装一些构建工具。