question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nokogiri requires Ruby version < 3.1.dev, >= 2.5

See original GitHub issue

Context

OS: Ubuntu 16.04 x64

Unable to run $ RAILS_ENV=development bundle exec rake db:create from official docs here

Steps to Reproduce

  1. Follow steps from official docs from official docs here until Initialize the metadata database step
  2. Attempt to run $ RAILS_ENV=development bundle exec rake db:create
  3. You should now get Could not find nokogiri-1.11.3 in any of the sources
  4. Attempt to install nokogiri $ sudo gem install nokogiri -v '1.11.3'
  5. You should get Gem::InstallError: nokogiri requires Ruby version < 3.1.dev, >= 2.5.
  6. Run $ sudo gem install nokogiri -v '1.10.9', this should now work
  7. However rerunning $ RAILS_ENV=development bundle exec rake db:create will yield Could not find nokogiri-1.11.3 in any of the sources

Current Result

Could not find nokogiri-1.11.3 in any of the sources when running $ RAILS_ENV=development bundle exec rake db:create

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
panchicorecommented, Jun 4, 2021

Facing the same problem, made sure to git checkout tags/v4.45.0 not in master.

1reaction
sabmancommented, May 28, 2021

Have you tried to make sure you are using a release tag or are you on master?

Read more comments on GitHub >

github_iconTop Results From Across the Web

nokogiri requires Ruby version < 3.1.dev, >= 2.5 #1214 - GitHub
When i am executing vagrant plugin install vagrant-libvirt The error output is as follows Installing the 'vagrant-libvirt' plugin.
Read more >
Ruby: nokogiri requires Ruby version < 3.1.dev, >= 2.5
First of all, please upgrade vagrant, because it ships with its own ruby verison.
Read more >
Installing Nokogiri
Anybody on a linux system with an unsupported version of glibc (see Supported Platforms) will need to install from the ruby platform gem....
Read more >
Error installing rails: nokogiri requires Ruby version < 2.7.dev ...
Hey, I've followed all the steps in the video but when trying to install rails I get this error: Fetching: nokogiri-1.10.4-x86-mingw32.g...
Read more >
nokogiri requires Ruby version < 3.1.dev, >= 2.5 - Bountysource
nokogiri requires Ruby version < 3.1.dev, >= 2.5. vagrant-libvirt. 07 March 2021 Posted by mupeifeiyi. When i am executing vagrant plugin install vagrant- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found