码迷,mamicode.com
首页 > 其他好文 > 详细

Ruby on rails学习笔记——安装环境

时间:2015-08-06 10:54:38      阅读:423      评论:0      收藏:0      [点我收藏+]

标签:

出现问题: 
C:\Users\len>gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party di d not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "rubygems.global. ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/sass-3.4.13 .gemspec.rz)

原因是ruby 的gem被和谐了,现在淘宝的ruby工程师架设了rubygems的国内镜像。使用方法如下:

$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***

https://ruby.taobao.org

然后再输入gem install rails,即可安装
技术分享

Ruby on rails学习笔记——安装环境

标签:

原文地址:http://www.cnblogs.com/tonglin0325/p/4707194.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!