rubygems - Rails ERROR: While executing (Gem::RemoteFetcher::UnknownHostError) -


i try install rails command gem install rails --no-ri --no-rdoc , error occur.below output of error

gem install rails --no-ri --no-rdoc fetching: multi_json-1.7.8.gem (100%) installed multi_json-1.7.8 fetching: tzinfo-0.3.37.gem (100%) installed tzinfo-0.3.37 fetching: atomic-1.1.12.gem (100%) building native extensions.  take while... installed atomic-1.1.12 fetching: thread_safe-0.1.2.gem (100%) installed thread_safe-0.1.2 fetching: activesupport-4.0.0.gem (100%) installed activesupport-4.0.0 fetching: builder-3.1.4.gem (100%) installed builder-3.1.4 fetching: rack-1.5.2.gem (100%) 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 solve problem?

it looks source either isn't responding or gem can't found @ source.

try gem install rack-test. if gives error try switching source you're getting gem from.

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

then try installing again.

or

you try installing directly different source gem install rack-test --source 'https://production.cf.rubygems.org'

once gem install properly, try installing rails again.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -