2016-06-11 88 views
-2

当我使用终端来创建一个新的应用程序,例如我键入Rails new book_app并创建所有文件,但然后停止并要求我捆绑安装。这是它在终端看起来的样子无法创建新的rails应用程序?

Last login: Sat Jun 11 15:59:10 on console 
Ahmeds-MacBook-Pro:~ AHmed$ cd desktop 
Ahmeds-MacBook-Pro:desktop AHmed$ rails new book_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 bin/setup 
     create config 
     create config/routes.rb 
     create config/application.rb 
     create config/environment.rb 
     create config/secrets.yml 
     create config/environments 
     create config/environments/development.rb 
     create config/environments/production.rb 
     create config/environments/test.rb 
     create config/initializers 
     create config/initializers/assets.rb 
     create config/initializers/backtrace_silencers.rb 
     create config/initializers/cookies_serializer.rb 
     create config/initializers/filter_parameter_logging.rb 
     create config/initializers/inflections.rb 
     create config/initializers/mime_types.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 

它要求我运行软件包安装。我已经尝试CTRL -C和手动捆绑int,但仍没有改变。有没有一种方法可以自动生成,因为之前我创建一个新的rails应用程序时就像那样?

+2

它并不要求您运行'bundle install'。它实际上*运行*'捆绑安装'并且需要一些时间。 – Pavan

+0

我知道,但问题是需要很长时间,不会完成。我离开了它一段时间,并回来,仍然运行捆绑。 – AHmed

回答

0

它似乎在最后运行软件包安装,但它可能需要一段时间。看起来你提到它耗时太长。尝试连接到更好的网络。

否则,如果遇到捆绑安装失败问题,请确保您的ruby和rails版本兼容。