尝试安装 rails 时出现 While 执行 gem ... (Gem::RemoteFetcher::FetchError) 503 错误 [英] Getting a While executing gem ... (Gem::RemoteFetcher::FetchError) 503 error when attempting to install rails
本文介绍了尝试安装 rails 时出现 While 执行 gem ... (Gem::RemoteFetcher::FetchError) 503 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我尝试使用 Ruby 2.1.1 和 RVM 执行gem install rails -v 4.1.0"时遇到的错误.
This is the error I get when I try to do a "gem install rails -v 4.1.0" using Ruby 2.1.1 and RVM.
错误:执行 gem 时 ... (Gem::RemoteFetcher::FetchError) 错误响应服务不可用 503(http://api.rubygems.org/api/v1/dependencies?gems=活动记录)
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Service Unavailable 503 (http://api.rubygems.org/api/v1/dependencies?gems=activerecord)
不知道是什么原因造成的,有人有什么想法吗?
Not sure what is causing this, anybody have any ideas?
推荐答案
这将是一个 ssl 问题.
It would be a ssl problem.
更改您的 gem 来源并重试.
Change your gem sources and try again.
gem sources --remove https://rubygems.org/
gem sources -a http://rubygems.org/
这篇关于尝试安装 rails 时出现 While 执行 gem ... (Gem::RemoteFetcher::FetchError) 503 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文