Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 创建rails应用程序时出错?_Ruby On Rails - Fatal编程技术网

Ruby on rails 创建rails应用程序时出错?

Ruby on rails 创建rails应用程序时出错?,ruby-on-rails,Ruby On Rails,我在rails中创建应用程序时遇到此错误 我键入以下命令 $rails新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/bun

我在rails中创建应用程序时遇到此错误 我键入以下命令

$rails新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.

我没有看到任何错误,只是一些通知。至少rails的人会在事情发生之前警告你,但情况并非总是这样。

我没有看到任何错误,只是一些通知。至少rails的人会在某些事情发生之前警告您,但情况并非总是如此。

看起来您使用的是旧版本的Bundler,它使用了一些不推荐的方法。尝试更新捆绑程序:

gem update bundler

看起来您使用的是旧版本的Bundler,它使用了一些不推荐使用的方法。尝试更新捆绑程序:

gem update bundler