Getting a While executing gem … (Gem::RemoteFetche

2019-07-23 04:25发布

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.

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?

3条回答
姐就是有狂的资本
2楼-- · 2019-07-23 04:45

Sometimes it is just a server problem.

I waited a few minutes and tried again and it worked.

查看更多
孤傲高冷的网名
3楼-- · 2019-07-23 04:56

It would be a ssl problem.

Change your gem sources and try again.

gem sources --remove https://rubygems.org/
gem sources -a http://rubygems.org/
查看更多
Luminary・发光体
4楼-- · 2019-07-23 05:00

Make sure your rvm ssl certificates are up to date.

Check their status

$ rvm osx-ssl-certs status all

Update them!

$ rvm osx-ssl-certs update all

Also try

gem install rails --include-dependencies
查看更多
登录 后发表回答