2011-09-09 140 views
0

我安装了Rails安装程序。现在我正在尝试创建一个新的Rails项目。当我做创建新的Rails项目时出错

C:\Sites> rails new demoproj

我得到这个错误:

 
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. 

回答

0

我假设你正在通过代理安装rails。这可能是你正在寻找:

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

+0

感谢很多朋友,但我无法找到gemrc文件,是一样的C:\ RailsInstaller \ Ruby1.9.2 \ bin \ gem文件 – sandyutd

+0

我不是Windows用户,所以我不确定这一点。为Windows Vista/7尝试:_C:\ ProgramData \ gemrc_。 *需要创建rc文件,如果不存在* http://stackoverflow.com/questions/7281047/creating-a-new-rails-3-project-over-a-proxy-in-windows – lnguyen55

+0

感谢buddy .. thnx u vry much.can我有你的电子邮件ID – sandyutd

0
在一般的方式

,这个问题意味着你需要做一个bundle install。没有线索,如果它是一个特定于Windows的问题,那么在创建项目后应该有一个自动捆绑包。

相关问题