运行rails服务器时OpenID错误
我在 http://www.communityguides.eu/articles/16 上完成了教程,并尝试启动 Rails 服务器。运行 Rails 服务器几秒钟后,我收到一个错误,我绞尽脑汁试图找出原因。以下是错误消息的片段:
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require': no such file to load --
openid/store/fetchers (LoadError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require'
from /etc/rails_projects/GooFace/config/environments/development.rb:31
What is openid/store/fetchers
?我看到其他几个教程提到了“require”,那么为什么它会导致这个错误呢?
I finished the tutorial at http://www.communityguides.eu/articles/16 and tried to launch the rails server. A few seconds after running rails server, I get an error and I'm pulling my hair out trying to figure out why. Here's a snippet from the error message:
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require': no such file to load --
openid/store/fetchers (LoadError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require'
from /etc/rails_projects/GooFace/config/environments/development.rb:31
What is openid/store/fetchers
? I've seen several other tutorials mention that "require", so why would it cause this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,我认为这与您的omniauth 版本有关。在您的 gem 文件中显式指定omniauth 的版本,否则您最终可能会得到版本 0.0.1 或其他奇怪的版本。请参阅https://github.com/intridea/omniauth/issues/193。
I had this same problem and I think it has to do with your omniauth version. Specify the version of omniauth explicitly in your gem file otherwise you might end up with version 0.0.1 or something weird. Refer to https://github.com/intridea/omniauth/issues/193.