运行rails服务器时OpenID错误

发布于 2024-11-08 07:15:23 字数 1152 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长途伴 2024-11-15 07:15:23

我遇到了同样的问题,我认为这与您的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文