将Ruby 2.0.0-p247更新为Ruby-2.0.0-p353。安装Rails 4.0.0时出错。在GNU / Linux上

时间:2013-11-22 17:46:39

标签: ruby-on-rails ruby linux rvm

我正在使用rvm 1.23.16 (stable)构建我的Ruby环境,并且可以看到Ruby将ruby 2.0.0-p247传递给ruby-2.0.0-p353,现在如果尝试安装Rails 4.0 rails gem install rails -v 4.0.0或{{ 1}}(为了省略安装过程的文档,就像我最近学到的那样)我有以下错误:

gem install rails -v 4.0.0 --no-rdoc --no-ri.

Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /home/llarruda/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb creating Makefile make "DESTDIR=" compiling atomic_reference.c linking shared-object atomic_reference.so make "DESTDIR=" install /usr/bin/install -c -m 0755 atomic_reference.so ./.gem.20131122-9599-8hv76z installing default atomic_reference libraries Gem files will remain installed in /home/llarruda/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14 for inspection. Results logged to /home/llarruda/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14/ext/gem_make.out

的内容
~/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14/ext/gem_make.out

请参阅/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb creating Makefile make "DESTDIR=" compiling atomic_reference.c linking shared-object atomic_reference.so make "DESTDIR=" install /usr/bin/install -c -m 0755 atomic_reference.so ./.gem.20131122-9599-8hv76z installing default atomic_reference libraries

~/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14/ext/mkmf.log

我已经以相同的方式安装了环境可能需要的所有gem,这是从Ruby版本的更新开始的。

1 个答案:

答案 0 :(得分:1)

尝试

gem update --system

然后重新安装...............