gpt4 book ai didi

ruby-on-rails - NameError:未初始化的常量Gem::SourceIndex

转载 作者:行者123 更新时间:2023-12-03 11:35:16 25 4
gpt4 key购买 nike

在访问首页时(成功运行bundle install之后),对于新的Rails应用程序,未进行任何修改,就会出现此错误。

这是版本号:
ruby: 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.1]rails: 3.2.12rvm: 1.18.14gem: 2.0.0bundler: 1.3.0.pre.8
调用which ruby会返回/Users/J/.rvm/rubies/ruby-1.9.3-p392/bin/ruby,这似乎很糟糕,对吗?

最佳答案

您需要更新Bundler:gem update bundler
RubyGems发布2.0 seems to be the trigger错误:

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.



这是 issue details

关于ruby-on-rails - NameError:未初始化的常量Gem::SourceIndex,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15060011/

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