Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nokogiri requires Ruby version < 2.3

I am trying to get Rails to work on Windows 10. I am using Ruby 2.3.0, and Rails 4.2.6, and am temporarily using Nokogiri 1.6.3.

When I try running rails new demo, it returns an error:

An error occurred while installing nokogiri (1.6.7.2), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.7.2'` succeeds before bundling.

When I run gem install nokogiri -v '1.6.7.2 I get:

ERROR:  Error installing nokogiri:
        nokogiri requires Ruby version < 2.3, >= 1.9.2.

How do I update Nokogiri and get Rails to work?

like image 560
Moon Cheesez Avatar asked Apr 26 '16 14:04

Moon Cheesez


1 Answers

Install the newest version of Nokogiri. In Gemfile:

gem 'nokogiri', '~> 1.6.8.rc2'
like image 106
Alexander Shlenchack Avatar answered Sep 22 '22 23:09

Alexander Shlenchack