Skip to content

Instantly share code, notes, and snippets.

@reza
Created July 9, 2017 16:38
Show Gist options
  • Save reza/91d13d21818e92c48ca40077090ff1b4 to your computer and use it in GitHub Desktop.
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)
#!/bin/sh
gem source -r https://production.s3.rubygems.org
gem source -a https://rubygems.org
@reza
Copy link
Author

reza commented Jul 9, 2017

~$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment