'require': cannot load such file — 'nokogiri\nokogiri' (LoadError) when running `rails server`

后端 未结 4 1244
忘掉有多难
忘掉有多难 2020-11-27 03:07

I\'m running a clean install of Ruby 2.2.1 on Windows 8.1 with DevKit. After the installation I run:

gem install rails
rails new testapp
cd testapp
rails ser         


        
4条回答
  •  忘掉有多难
    2020-11-27 03:32

    I got Nokogiri running with Ruby 2.2 on Windows 10 with a mix of Mike Dalessios and Julios answer:

    1. Look for the latest version of Nokogiri in Nokogiri's github repo.
    2. Run gem uninstall nokogiri.
    3. Add gem "nokogiri", ">= 1.6.7.rc" to your Gemfile.
    4. Run bundle install.
    5. Run bundle update nokogiri if bundle has locked Nokogiri at some version.

提交回复
热议问题