简体   繁体   English

创建新的Rails项目时出错

[英]Error when creating new Rails project

I installed the Rails installer. 我安装了Rails安装程序。 Now I'm trying to create a new Rails project. 现在,我正在尝试创建一个新的Rails项目。 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 . 通常,该问题意味着您需要进行bundle install no clue if its a windows specific issue though, there should be an automatic bundle after it creates the project. 如果这不是Windows的特定问题,则不知道,创建项目后应该有一个自动捆绑包。

I'm assuming you are installing rails over proxy. 我假设您正在通过代理安装Rails。 This maybe what you are looking for: 这可能是您想要的:

Add the given option to your gemrc file 将给定的选项添加到您的gemrc文件中

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

Creating a new rails 3 project over a proxy in windows 在Windows中通过代理创建新的Rails 3项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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