Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X: Error when installing any gem - gem install bundler ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz) #3264

Closed
gmangalo opened this issue Jan 14, 2015 · 4 comments

Comments

@gmangalo
Copy link

OS X 10.9.5
Gem 2.0.14
Ruby 2.0.0p481
OpenSSL 0.9.8za 5 Jun 2014

gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz)

Tried adding source tag
gem install bundler --source http://rubygems.org
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz)
Unable to download data from http://rubygems.org/ - no such name (http://rubygems.org/latest_specs.4.8.gz)

Thought of using stable ruby version through RVM - \curl -sSL https://get.rvm.io | bash -s stable --ruby but I am getting this error
curl: (6) Could not resolve host: get.rvm.io

@mpapis
Copy link
Member

mpapis commented Jan 14, 2015

can I see cat /etc/resolv.conf? it is possible:

  • your network configuration is broken,
  • your network is broken (could be temporary - please retry)

@gmangalo
Copy link
Author

gmangalo commented Feb 2, 2015

thanks @mpapis this issue was related to our network's firewall, needed to install using a wifi and bundler was successfully installed now.

@gmangalo gmangalo closed this as completed Feb 2, 2015
@pkuczynski pkuczynski modified the milestone: rvm-1.27.0 Nov 8, 2016
@vasanthaneppali
Copy link

@mpapis
hi am facing the same and here is my resil.conf

Generated by NetworkManager

nameserver 10.87.61.13
nameserver 10.170.67.165
nameeserver 8.8.8.8

what needs to be done in resolv.conf can you please share
thank you

@mpapis
Copy link
Member

mpapis commented May 9, 2022

@mpapis hi am facing the same and here is my resil.conf

Hey @vasanthaneppali, your config looks good, if it has a nameserver especially the google one 8.8.8.8 everything should be fine, you might have a typo in the config - unless you made it writing it to the ticket.

Make sure your network configuration works as expected, it's not an rvm issue - it's your (system) network configuration.

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

No branches or pull requests

4 participants