Ruby on rails 创建新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.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
一般来说,这个问题意味着您需要进行捆绑安装。如果这是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}