0

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

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]

任何想法,将不胜感激。

4

2 回答 2

2

Just try gem install nokogiri as you have RVM installed. See here Installing Nokogiri for other things to install with it.

Like below :

nokogiri requirements

sudo apt-get install libxslt-dev libxml2-dev
gem install nokogiri
于 2013-10-28T06:35:39.750 回答
0

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

于 2013-10-28T06:31:25.223 回答