gem install cucumber throws error

pmv's Avatar

pmv

19 Feb, 2014 09:38 AM

I am trying to install cucumber. PFB the status as of now and the error i m getting:

"C:\Ruby\DevKit>ruby dk.rb install "

[INFO] Skipping existing gem override for 'C:/Ruby/Ruby193'

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

"C:\Ruby\DevKit>ruby -v"
ruby 1.9.3p484 (2013-11-22) [i386-mingw32]

"C:\Ruby\DevKit>gem -v " 2.1.11

"C:\Ruby\DevKit>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 have tried "gem install cucumber --no-http-proxy" as well. I have also tried

"set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem"

It throws the same error.

Please help me!

  1. 2 Posted by pmv on 19 Feb, 2014 09:43 AM

    pmv's Avatar

    The output for debug command is as follows:
    "gem install cucumber --debug" :

    C:\Ruby\rubygems-2.1.11>gem install cucumber --debug-v ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --debug-v C:\Ruby\rubygems-2.1.11>gem install cucumber --debug Exception Errno::EEXIST' at C:/Ruby/Ruby193/lib/ruby/1.9.1/fileutils.rb:247 - File exists - C:/Documents and Settings/pmv.SRA873/.gem/specs/rubygems.org%443 ExceptionErrno::ENOENT' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:287 - No such file or directory - C:/Documents and Settings/pmv.SRA873/.gem/specs/rubygems.org%443/latest_specs.4.8 Exception SocketError' at C:/Ruby/Ruby193/lib/ruby/1.9.1/net/http.rb:763 - getaddrinfo: No such host is known. ExceptionGem::RemoteFetcher::UnknownHostError' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:276 - no such name (https://rubygems.org/latest_specs.4.8.gz) Exception Gem::RemoteFetcher::UnknownHostError' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:236 - no such name (https://rubygems.org/latest_specs.4.8.gz) ExceptionGem::SpecificGemNotFoundException' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:279 - Could not find a valid gem 'cucumber' (>= 0) locally or in a repository 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) Exception Errno::EEXIST' at C:/Ruby/Ruby193/lib/ruby/1.9.1/fileutils.rb:247 - File exists - C:/Documents and Settings/pmv.SRA873/.gem/specs/rubygems.org%443 ExceptionErrno::ENOENT' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:287 - No such file or directory - C:/Documents and Settings/pmv.SRA873/.gem/specs/rubygems.org%443/prerelease_specs.4.8 Exception SocketError' at C:/Ruby/Ruby193/lib/ruby/1.9.1/net/http.rb:763 - getaddrinfo: No such host is known. ExceptionGem::RemoteFetcher::UnknownHostError' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:276 - no such name (https://rubygems.org/prerelease_specs.4.8.gz) Exception Errno::EEXIST' at C:/Ruby/Ruby193/lib/ruby/1.9.1/fileutils.rb:247 - File exists - C:/Documents and Settings/pmv.SRA873/.gem/specs/rubygems.org%443 ExceptionErrno::ENOENT' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:287 - No such file or directory - C:/Documents and Settings/pmv.SRA873/.gem/specs/rubygems.org%443/specs.4.8 Exception SocketError' at C:/Ruby/Ruby193/lib/ruby/1.9.1/net/http.rb:763 - getaddrinfo: No such host is known. ExceptionGem::RemoteFetcher::UnknownHostError' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:276 - no such name (https://rubygems.org/specs.4.8.gz) Exception `Gem::RemoteFetcher::UnknownHostError' at C:/Ruby/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:236 - no such name (https://rubygems.org/specs.4.8.gz)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac