Reputation: 117
I want to use Ruby 1.8.7 with Rails, but when I run bundle install
I get this error:
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.
nokogiri 1.6.0 does not support Ruby <1.9.2.
I tried installing nokogiri 1.5.9 to make things work but it did not help.
Upvotes: 1
Views: 3229
Reputation: 117
i added the line
gem 'nokogiri', '~> 1.5.10'
in my Gemfile and it install nokogiri 1.5.10 and the bundle install succeeded !
Upvotes: 8
Reputation: 10874
According to the changelog:
1.5.0 beta1 / 2010/05/22
Ruby 1.8.6 is deprecated. Nokogiri will install, but official support is ended.
So, you'll probably need to use nokogirl version 1.4.7.
Upvotes: -1