我刚刚在Windows 7上使用railsinstaller在rails上安装了ruby。我可以使用命令提示符启动rails。但是当我开始一个新项目时,这就是我得到的:
C:\Sites>rails new first_cms -d mysql
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/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/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
此时,命令提示符停止工作。当我检查目录时,我注意到已经创建了新的项目文件。我的ruby和rails信息如下
ruby:
bin: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
version: ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
rails:
bin: C:/RailsInstaller/Ruby1.9.3/bin/rails.bat
version: Rails 4.1.1
为什么项目的进度停留在'运行捆绑安装'?我对rails非常陌生,所以这让我很困惑。
答案 0 :(得分:1)
你等了多久? Bundler呼吁rubygems.org安装缺失的宝石,因此有时需要花一点时间在新创建的应用程序上。
答案 1 :(得分:1)
这可能是他们在这里所说的关系,但它也可能是不同的东西。有时,当我在"运行捆绑安装"创建一个新的rails项目时,我遇到了一个错误。时刻。如果问题仍然存在,您可以尝试我的方式。
您可以输入以下内容转到项目文件夹:
cd first_cms
然后您可以手动安装捆绑包:
gem install bundle
然后,您可以运行捆绑包,项目创建将完成:
bundle install
它对我有用!希望它适合你