我在rails中创建应用程序时遇到此错误 我输入以下命令
$ rails new myapp
确实创建了所有文件。但我也有一些错误。
run bundle install
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:3.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:162.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:162.
答案 0 :(得分:1)
看起来您正在使用旧版本的Bundler,它使用了一些不推荐使用的方法。尝试更新bundler:
gem update bundler
答案 1 :(得分:0)
我没有看到任何错误,只是一些通知。至少铁杆人员会在事情消失之前警告你,但情况并非如此。