Ruby on rails Ruby更新错误

Ruby on rails Ruby更新错误,ruby-on-rails,ruby,Ruby On Rails,Ruby,我正在尝试在终端中运行以下命令: gem install bundler && bundle install --without test development 但是关于Ruby版本的get me错误,您可以在下面看到登录: successfully installed bundler-1.3.5 1 gem installed Installing ri documentation for bundler-1.3.5... Installing RDoc documenta

我正在尝试在终端中运行以下命令:

gem install bundler && bundle install --without test development
但是关于Ruby版本的get me错误,您可以在下面看到登录:

successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using ffi (1.9.1) 
Using mime-types (1.25) 
Using ethon (0.6.1) 
Using json (1.8.1) 
Using mini_portile (0.5.2) 
Installing nokogiri (1.6.0)

Gem::InstallError: nokogiri requires Ruby version >= 1.9.2.
An error occurred while installing nokogiri (1.6.0), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.
我的Ruby版本是:(
Ruby-v


任何想法都将不胜感激。

试试这个:
sudo apt get install libxslt dev
只要在安装RVM后尝试gem install nokogiri即可。请参阅此处安装Nokogiri,以了解使用它安装的其他内容

如下图所示:

诺科吉里要求
希望这对我有所帮助我以前试过,但问题仍然存在…第一行:
已经安装了最新版本
。第二行:
安装nokogiri时出错:nokogiri需要Ruby版本>=1.9.2。
希望这能帮助您发现我使用的是默认系统Ruby(因此在/Library/Ruby/gems中安装了所有gems),即使rbenv指向Ruby-1.9.3,这也是nokogiri抱怨的原因。通过将其添加到$PATH中修复了此问题,因此在系统ruby:export PATH=“$HOME/.rbenv/bin:$PATH”之前加载rbenv时使用ruby 1.9.2p320而不是ruby 1.9.2dev
ruby 1.9.2dev (2010-07-02) [i486-linux]
sudo apt-get install libxslt-dev libxml2-dev
gem install nokogiri