Nokogiri 在我的 gem 文件中。 bundle 安装返回预期的输出:
Using nokogiri (1.4.4)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
尝试执行 db:create:all 时出现以下错误:
rake db:create:all
Could not find nokogiri-1.4.4 in any of the sources
如果我在 irb 中测试,我也会得到预期的输出。
irb(main):003:0> require "rubygems"
=> true
irb(main):004:0> require "nokogiri"
=> true
我已经多次卸载和安装 nokogiri 及其依赖项。
我正在使用:
轨道 3.0.6 ruby 1.8.7
如有任何帮助,我们将不胜感激。
编辑:美国东部时间 2011 年 4 月 25 日下午 3:02
对于下面的评论:nokogiri 的 Gemfile 行是
gem "nokogiri", '1.4.4', :require => "nokogiri"
最佳答案
我根据你的情况进行了测试。
我的 Gemfile 是这样的:
gem "nokogiri", '1.4.4', :require => "nokogiri"
然后 rake db:migrate
工作得很好
关于ruby - 安装带有 Rails : "Could not find "Nokogiri. 的 Nokogiri Gem 的问题 ..",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5781858/