Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 创建新Rails项目时出错_Ruby On Rails_Ruby On Rails 3_Installation - Fatal编程技术网

Ruby on rails 创建新Rails项目时出错

Ruby on rails 创建新Rails项目时出错,ruby-on-rails,ruby-on-rails-3,installation,Ruby On Rails,Ruby On Rails 3,Installation,我安装了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 liste

我安装了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.
一般来说,这个问题意味着您需要进行捆绑安装。如果这是windows特有的问题,则不知道。在创建项目后,应该会有一个自动捆绑包。

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

将给定选项添加到gemrc文件中


非常感谢您的朋友,但是我找不到gemrc文件,它是否与C:\RailsInstaller\Ruby1.9.2\bin\gem文件相同?我不是Windows用户,所以对此我不确定。请尝试:C:\ProgramData\gemrc for windows Vista/7。如果不存在,则需要创建rc文件
gem: -p http//#{proxy-server}:#{port}