Ruby更新错误

时间:2013-10-28 06:24:19

标签: ruby-on-rails ruby

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

gem install bundler && bundle install --without test development

但是关于Ruby版本的错误,您可以在下面看到登录:

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

ruby 1.9.2dev (2010-07-02) [i486-linux]

任何想法都会受到赞赏。

2 个答案:

答案 0 :(得分:2)

在安装RVM时尝试gem install nokogiri。请参阅此处安装Nokogiri以便安装其他东西。

如下所示:

nokogiri要求

sudo apt-get install libxslt-dev libxml2-dev
gem install nokogiri

答案 1 :(得分:0)

试试这个:sudo apt-get install libxslt-dev