Created
July 9, 2017 16:38
-
-
Save reza/91d13d21818e92c48ca40077090ff1b4 to your computer and use it in GitHub Desktop.
gem install rails not working after upgrading to ruby 2.4.1: ERROR: Could not find a valid gem 'rails' (>= 0), here is why: Unable to download data from https://production.s3.rubygems.org - no such name (https://production.s3.rubygems.org/specs.4.8.gz)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gem source -r https://production.s3.rubygems.org | |
gem source -a https://rubygems.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
~$ gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://production.s3.rubygems.org - no such name (https://production.s3.rubygems.org/specs.4.8.gz)
~$ gem which rubygems
/Users/User/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems.rb
~$ gem sources -v
*** CURRENT SOURCES ***
https://production.s3.rubygems.org
~$ gem source -r https://production.s3.rubygems.org
https://production.s3.rubygems.org removed from sources
~$ gem source -a https://rubygems.org
https://rubygems.org added to sources