Nokogiri requires Ruby version < 2.3

前端 未结 5 1148
轻奢々
轻奢々 2021-01-05 13:22

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 d

相关标签:
5条回答
  • 2021-01-05 13:28

    Problem solved in version of Nokogiri 1.8.0.

    0 讨论(0)
  • 2021-01-05 13:32

    I recently ran into the same problem installing rails on windows with Ruby v2.4.1 I found that removing the gemfile line:

    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
    

    then running bundle update

    then putting the tzinfo-data line back in the gemfile

    I could then run bundle without any issue. All is working well again.

    0 讨论(0)
  • 2021-01-05 13:36

    Install the newest version of Nokogiri. In Gemfile:

    gem 'nokogiri', '~> 1.6.8.rc2'
    
    0 讨论(0)
  • 2021-01-05 13:43

    use bundle update nokogiri, but also check you ruby version ruby -v

    0 讨论(0)
  • 2021-01-05 13:47

    I had the same problem as you. On Windows you need to perform an additional step:

    http://www.nokogiri.org/tutorials/installing_nokogiri.html

    0 讨论(0)
提交回复
热议问题