0

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

这到底是什么意思,我该如何解决?

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

4

1 回答 1

0

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

一般来说,听起来您可能需要安装一些构建工具。

于 2013-09-03T13:41:16.867 回答