Bundler installation fails

Asked 2 years ago, Updated 2 years ago, 108 views

When you enter the gem install bundle command, the following error occurs and the installation is not performed:

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

How can I solve this problem?

bundler rubygems

2022-09-30 20:27

5 Answers

A DNS failure is preventing communication to rubygems.org. As soon as it is restored, it will succeed.

You can check the status by retrieving domain information from the console.

host rubygems.org


2022-09-30 20:27

I was having trouble with the same thing myself. It's been resolved now, but if something similar happens next time, you can see the site below and see if it's missing right away.

Status-RubyGems System Status https://status.rubygems.org/

Pingdom Public Reports Overview http://uptime.rubygems.org/


2022-09-30 20:27

It seems that rubygems.org is unstable today, so maybe that's why.


2022-09-30 20:27

-r(Remove) the source location and -a(add) the valid location

gem sources-r http://rubygems.org/-a http://production.cf.rubygems.org/

Revert

gem sources-r http://production.cf.rubygems.org/-a http://rubygems.org/

I always try to solve this problem.


2022-09-30 20:27

Try setting the proxy with the -p option.

https://maku77.github.io/ruby/gem/gem-with-proxy.html


2022-09-30 20:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.