简体   繁体   中英

Error when creating new Rails project

I installed the Rails installer. Now I'm trying to create a new Rails project. When I do

C:\Sites> rails new demoproj

I get this error:

Fetching source index for http://rubygems.org/
Could not reach rubygems repository http://rubygems.org/
Could not find gem 'turn (>= 0)' in any of the gem sources listed in your Gemfile.

in a general way, that problem means you need to do a bundle install . no clue if its a windows specific issue though, there should be an automatic bundle after it creates the project.

I'm assuming you are installing rails over proxy. This maybe what you are looking for:

Add the given option to your gemrc file

gem: -p http//#{proxy-server}:#{port}

Creating a new rails 3 project over a proxy in windows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM