Ruby on rails rails新示例_应用程序在捆绑安装中卡住

Ruby on rails rails新示例_应用程序在捆绑安装中卡住,ruby-on-rails,ruby,macos,terminal,osx-snow-leopard,Ruby On Rails,Ruby,Macos,Terminal,Osx Snow Leopard,我刚刚在运行Snow Leopard 10.6.8的Macbook上安装了Ruby、Rails、Git和RVM,除了运行Rails new sample_应用程序时,它在运行时卡住了捆绑安装 有没有办法加快速度/这样持续大约10分钟,我想知道我是否做错了什么 这是用于安装RVM、Ruby和Rails的命令: 我还需要做什么吗?它慢得令人痛苦 rails new demo_app create create README.rdoc create Rakefile crea

我刚刚在运行Snow Leopard 10.6.8的Macbook上安装了Ruby、Rails、Git和RVM,除了运行Rails new sample_应用程序时,它在运行时卡住了捆绑安装

有没有办法加快速度/这样持续大约10分钟,我想知道我是否做错了什么

这是用于安装RVM、Ruby和Rails的命令:

我还需要做什么吗?它慢得令人痛苦

 rails new demo_app
  create  
  create  README.rdoc
  create  Rakefile
  create  config.ru
  create  .gitignore
  create  Gemfile
  create  app
  create  app/assets/javascripts/application.js
  create  app/assets/stylesheets/application.css
  create  app/controllers/application_controller.rb
  create  app/helpers/application_helper.rb
  create  app/views/layouts/application.html.erb
  create  app/assets/images/.keep
  create  app/mailers/.keep
  create  app/models/.keep
  create  app/controllers/concerns/.keep
  create  app/models/concerns/.keep
  create  bin
  create  bin/bundle
  create  bin/rails
  create  bin/rake
  create  config
  create  config/routes.rb
  create  config/application.rb
  create  config/environment.rb
  create  config/environments
  create  config/environments/development.rb
  create  config/environments/production.rb
  create  config/environments/test.rb
  create  config/initializers
  create  config/initializers/backtrace_silencers.rb
  create  config/initializers/filter_parameter_logging.rb
  create  config/initializers/inflections.rb
  create  config/initializers/mime_types.rb
  create  config/initializers/secret_token.rb
  create  config/initializers/session_store.rb
  create  config/initializers/wrap_parameters.rb
  create  config/locales
  create  config/locales/en.yml
  create  config/boot.rb
  create  config/database.yml
  create  db
  create  db/seeds.rb
  create  lib
  create  lib/tasks
  create  lib/tasks/.keep
  create  lib/assets
  create  lib/assets/.keep
  create  log
  create  log/.keep
  create  public
  create  public/404.html
  create  public/422.html
  create  public/500.html
  create  public/favicon.ico
  create  public/robots.txt
  create  test/fixtures
  create  test/fixtures/.keep
  create  test/controllers
  create  test/controllers/.keep
  create  test/mailers
  create  test/mailers/.keep
  create  test/models
  create  test/models/.keep
  create  test/helpers
  create  test/helpers/.keep
  create  test/integration
  create  test/integration/.keep
  create  test/test_helper.rb
  create  tmp/cache
  create  tmp/cache/assets
  create  vendor/assets/javascripts
  create  vendor/assets/javascripts/.keep
  create  vendor/assets/stylesheets
  create  vendor/assets/stylesheets/.keep
     run  bundle install

看起来你是在一个代理后面,这就是为什么捆绑包没有像你想要的那样快


将HTTP_PROXY environment var设置为指向您的代理url。

您似乎在代理后面,这就是为什么捆绑包的运行速度不如您所希望的快

将HTTP_PROXY environment var设置为指向您的代理url。

系统处于“挂起”状态,因为它正在通过
rails new
生成的GEM文件中的
bundle install
安装所有GEM。这是预期的行为。它会询问您的密码,以便安装一些需要
sudo
访问才能写入的文件(很可能将rail可执行文件放在您的路径中)

调用rails new时,可以通过传递
--skip bundle
参数跳过
bundle安装
步骤。在运行应用程序之前,您仍然需要调用bundle install,但至少您可以控制它何时发生

当您知道要更改GEM文件时,使用-
-skip bundle
是很有用的,这样您就不必等待bundler安装所有GEM,然后在几分钟内再次运行它了

系统正在“挂起”,因为它正在安装所有GEM,通过
railsnew
生成的GEM文件中的
bundle安装
。这是预期的行为。它会询问您的密码,以便安装一些需要
sudo
访问才能写入的文件(很可能将rail可执行文件放在您的路径中)

调用rails new时,可以通过传递
--skip bundle
参数跳过
bundle安装
步骤。在运行应用程序之前,您仍然需要调用bundle install,但至少您可以控制它何时发生


当您知道要更改GEM文件时,使用-
-skip bundle
非常有用,这样您就不必等待bundler安装所有GEM,然后在几分钟内再次运行它

您可以手动安装所有这些GEM

bundle install

您可以手动安装所有这些gem

bundle install

日志输出了什么吗?第一次下载并捆绑所有东西可能需要一段时间,所以它只会第一次这么做,或者对每个“新”命令都这样做?原木就卡在那里了。我在大约10分钟后使用了ctrl+c。。。我在看一个教程,做了所有喜欢的事情,在教程中,“rails新应用程序”几乎是即时的。如果输出被卡住,可能还有其他的东西。我建议用日志更新你的问题。只要你有一个良好的连接,它应该只在bundle安装上停留一两分钟。日志输出了什么吗?第一次下载并捆绑所有东西可能需要一段时间,所以它只会第一次这么做,或者对每个“新”命令都这样做?原木就卡在那里了。我在大约10分钟后使用了ctrl+c。。。我在看一个教程,做了所有喜欢的事情,在教程中,“rails新应用程序”几乎是即时的。如果输出被卡住,可能还有其他的东西。我建议用日志更新你的问题。只要你有一个良好的连接,它应该只停留在捆绑安装一两分钟。