gpt4 book ai didi

ruby-on-rails - Windows 上的 Rails Bundler 拒绝安装 hpricot(即使在手动安装 gem 时也会出现错误 : no such file to load -- hpricot)

转载 作者:可可西里 更新时间:2023-11-01 11:39:17 24 4
gpt4 key购买 nike

已升级到 Rails 3,并在混合平台开发组中使用 Bundler for gems。我在 Windows 上。当我运行 Bundle Install 时,它会成功完成,但不会安装 hpricot。 hpricot 行是:

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

也试过

gem "hpricot", :platform => :mswin

两者都很好,但是当我尝试执行“bundle show hpricot”时,我得到:

Could not find gem 'hpricot' in the current bundle.

如果我运行 Rails 控制台并尝试“require 'hpricot'”,我会得到:

LoadError: no such file to load -- hpricot

我也手动安装了hpricot,还是出现上面的错误。这在移动到 rails 3 之前工作正常。

最佳答案

在控制台中尝试这个,然后进行 bundle 安装,它会起作用:

gem install hpricot --platform=mswin32

关于ruby-on-rails - Windows 上的 Rails Bundler 拒绝安装 hpricot(即使在手动安装 gem 时也会出现错误 : no such file to load -- hpricot),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4159189/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com