Unable to Install Rails 5.2 on Ruby 2.5 due to Nokogiri Version Requirement
obahareth opened this issue · 3 comments
obahareth commented
The current Nokogiri version required is making installing Rails 5.2 on Ruby 2.5 fail because it's grabbing Nokogiri 1.13, and that requires Ruby versions >= 2.6
Gem::RuntimeRequirementNotMetError: nokogiri requires Ruby version < 3.2.dev, >=
2.6. The current ruby version is 2.5.0.
An error occurred while installing nokogiri (1.13.3), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.13.3' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rails was resolved to 5.2.7, which depends on
actioncable was resolved to 5.2.7, which depends on
actionpack was resolved to 5.2.7, which depends on
actionview was resolved to 5.2.7, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiriobahareth commented
Just to note that this is currently breaking Ruby on Rails's Ruby version requirement.
Rails 5.2 requires Ruby >= 2.2.2 but with this issue you're unable to run it unless you upgrade to Ruby 2.6.
flavorjones commented
Please see my comment at rails/rails#45008 (comment)
obahareth commented
@flavorjones's linked comment helped me resolve the issue.