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

后端 未结 2 520
鱼传尺愫
鱼传尺愫 2021-01-25 16:32

Upgraded to rails 3, and using Bundler for gems, in a mixed platform development group. I am on Windows. When I run Bundle Install it completes succesfully but will not instal

相关标签:
2条回答
  • 2021-01-25 17:11

    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]
    
    0 讨论(0)
  • 2021-01-25 17:21

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

    gem install hpricot --platform=mswin32
    
    0 讨论(0)
提交回复
热议问题