Rails Bundler on windows refuses to install hpricot (even on manual gem install get Error: no such file to load — hpricot)

早过忘川 提交于 2019-12-02 07:25:13
sent.ror

Try this in console and then do bundle install, it will work:

gem install hpricot --platform=mswin32

It may be that you are using a version of ruby that was built with MinGW in which case your platform will be 'mingw' rather than 'mswin'. Try changing your Gemfile line to the following:

gem "hpricot", "0.8.3", :platform => :mingw

And if you have other developers that are using the current setup and don't wan to break it for them, change it to this:

gem "hpricot", "0.8.3", :platforms => [:mswin, :mingw]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!