NameError: uninitialized constant Gem::SourceIndex

后端 未结 5 2157
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 12:08

This error appears for a new rails app, with nothing modified, when visiting the homepage (after successfully running bundle install).

Here are the vers

相关标签:
5条回答
  • 2021-01-01 12:39
    gem update bundle && gem update --system
    
    0 讨论(0)
  • 2021-01-01 12:44

    Have you tried updating your RubyGems?

    gem update --system
    
    0 讨论(0)
  • 2021-01-01 12:50

    For me it was all of the above + using the new one on my nginx config.

    0 讨论(0)
  • 2021-01-01 12:54

    You need to update Bundler: gem update bundler

    RubyGems release 2.0 seems to be the trigger for the error:

    RubyGems 2.0 includes several new features and many breaking changes. Some of these changes will cause existing software to break. . . . If you are using bundler be sure to install a 1.3.0.prerelease version or newer. Older versions of bundler will not work with RubyGems 2.0.

    Here are the issue details.

    0 讨论(0)
  • 2021-01-01 12:57

    Run:

    gem update --system 1.8.24
    

    Sounds like there's something buggy with latest.

    0 讨论(0)
提交回复
热议问题