"Could not find a valid gem 'cucumber' (>= 0) in any repository... SocketError: getaddrinfo: No such host is known"

883 views
Skip to first unread message

Vrushni Muthukumar

unread,
Feb 18, 2014, 4:46:12 AM2/18/14
to rubyin...@googlegroups.com

Hi all,

I am getting "Could not find a valid gem 'cucumber' (>= 0) in any repository... SocketError: getaddrinfo: No such host is known" error while trying to install cucumber. PFB the details:

"ruby -v"

ruby 1.9.3p484 (2013-11-22) [i386-mingw32]

"gem -v"

1.8.28

"gem install cucumber"

ERROR: Could not find a valid gem 'cucumber' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo: No such host is known. (http://rubygems.org/latest_specs.4.8.gz)

"ruby dk.rb install"

[INFO] Skipping existing gem override for 'C:/Ruby/Ruby193' [WARN] Skipping existing DevKit helper library for 'C:/Ruby/Ruby193'

I have placed Ruby in C:\Ruby\Ruby193 and DevKit in C:\Ruby\DevKit paths.

Do let me know what I am missing.

Luis Lavena

unread,
Feb 18, 2014, 10:29:19 AM2/18/14
to rubyin...@googlegroups.com
Hello,

On Tue, Feb 18, 2014 at 6:46 AM, Vrushni Muthukumar <vrus...@gmail.com> wrote:

Hi all,

I am getting "Could not find a valid gem 'cucumber' (>= 0) in any repository... SocketError: getaddrinfo: No such host is known" error while trying to install cucumber. PFB the details:

The above error happens most of the time due network issues or incorrect proxy configurations.

Are you behind a firewall/proxy? Have you set it up properly using HTTP_PROXY environment variable or using the --http-proxy setting with gem install command?

Please run "gem help install" and read the documentation about "http-proxy" setting. It requires a URI that represents the proxy. Something like:

http://user:password@server:port/

Please update it to match your browser proxy configuration, set it using "--http-proxy" and try again.

You can make the proxy setting permanent by setting the environment variable HTTP_PROXY.

Hope that helps.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Message has been deleted

Vrushni Muthukumar

unread,
Feb 20, 2014, 12:36:24 AM2/20/14
to rubyin...@googlegroups.com
Hi,

Thanks. Was able to fix that error. But now I am stuck up at this one:

C:\Ruby\rubygems-2.1.11>gem install json --platform=ruby  

ERROR:  Could not find a valid gem 'json' (>= 0), here is why: 
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz)        
                                                      
C:\Documents and Settings\pmv.SRA873>ruby -v 
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]    

C:\Documents and Settings\pmv.SRA873>gem -v         
1.7.2                                                                           

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

I m getting this error for most of the commands that i run:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz

Please help me!
Reply all
Reply to author
Forward
0 new messages