Rails ERROR: on execution (Gem :: RemoteFetcher :: UnknownHostError)

I try to install rails using the gem install rails --no-ri -no-rdoc command and then an error occurs .Below displays an error

gem install rails --no-ri --no-rdoc Fetching: multi_json-1.7.8.gem (100%) Successfully installed multi_json-1.7.8 Fetching: tzinfo-0.3.37.gem (100%) Successfully installed tzinfo-0.3.37 Fetching: atomic-1.1.12.gem (100%) Building native extensions. This could take a while... Successfully installed atomic-1.1.12 Fetching: thread_safe-0.1.2.gem (100%) Successfully installed thread_safe-0.1.2 Fetching: activesupport-4.0.0.gem (100%) Successfully installed activesupport-4.0.0 Fetching: builder-3.1.4.gem (100%) Successfully installed builder-3.1.4 Fetching: rack-1.5.2.gem (100%) Successfully installed rack-1.5.2 ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError) no such name (https://rubygems.org/gems/rack-test-0.6.2.gem) 

What should I do to solve this problem?

+4
source share
1 answer

It looks like your source is either not responding properly, or the stone cannot be found in the source.

Try gem install rack-test . If this gives you an error, try switching the source from which you get the gem.

First add the source gem source -a 'https://production.cf.rubygems.org'

Then try installing again.

OR

You can try installing directly from another source using gem install rack-test --source 'https://production.cf.rubygems.org'

Once you install this stone for proper installation, try installing the rails again.

0
source

Source: https://habr.com/ru/post/1496278/


All Articles