Skip to content

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

@gabegm

Description

@gabegm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions