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

后端 未结 4 1242
忘掉有多难
忘掉有多难 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:43

    Nokogiri doesn't support Ruby 2.2 on Windows yet. The next release will. See https://github.com/sparklemotion/nokogiri/issues/1256

    Nokogiri doesn't support native builds (e.g. with devkit) on Windows. Instead it provides gems containing prebuilt DLLs.

    There's a discussion which you may want to join or watch on the topic of devkit build support here: https://github.com/sparklemotion/nokogiri/issues/1190

提交回复
热议问题