rails installation fails

siteations's Avatar

siteations

01 Mar, 2013 07:31 PM

This comment was split from the discussion: rails installation fails

Hi, I've been trying all week with various levels of failure and have tried anything I could find to get connected to rubygems.org. Any assistance would be appreciated. My details are pasted below:

No Proxy Info:

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

With Proxy Info:

C:\DevKit>gem install rspec --no-ri --no-rdoc --http-proxy=http://XXXXXXX:XXXXXXX@proxy:8083
ERROR:  Could not find a valid gem 'rspec' (>= 0), here is why:
          Unable to download data from http://rubygems.org/ - server did not return a valid file (http://rubygems.org/latestspecs.4.8.gz)

C:\Ruby200>gem install rails --debug -v
Exception `OptionParser::MissingArgument' at C:/Ruby200/lib/ruby/2.0.0/optparse.rb:496 - missing argument:
Exception `OptionParser::MissingArgument' at C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1398 - missing argument: -v
ERROR:  While executing gem ... (OptionParser::MissingArgument)
    missing argument: -v
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:496:in `parse'
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1392:in `block in parse_in_order'
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1351:in `catch'
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1351:in `parse_in_order'
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1345:in `order!'
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1437:in `permute!'
        C:/Ruby200/lib/ruby/2.0.0/optparse.rb:1459:in `parse!'
        C:/Ruby200/lib/ruby/2.0.0/rubygems/command.rb:375:in `handle_options'
        C:/Ruby200/lib/ruby/2.0.0/rubygems/command.rb:296:in `invoke_with_build_args'
        C:/Ruby200/lib/ruby/2.0.0/rubygems/command_manager.rb:170:in `process_args'
        C:/Ruby200/lib/ruby/2.0.0/rubygems/command_manager.rb:130:in `run'
        C:/Ruby200/lib/ruby/2.0.0/rubygems/gem_runner.rb:60:in `run'
        C:/Ruby200/bin/gem:21:in `<main>'

C:\Ruby200>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.0
  - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby200/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: C:/Ruby200/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby200/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby200/lib/ruby/gems/2.0.0
     - C:/Users/c5034745/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
  1. Support Staff 2 Posted by Eric Hodel on 01 Mar, 2013 07:33 PM

    Eric Hodel's Avatar

    As to your first problem, what type of authentication does your proxy require?

    As to your second problem, -v requires a version. Which version of rails did you wish to install?

    If you wish to see verbose output, use -V

  2. Support Staff 3 Posted by Eric Hodel on 01 Mar, 2013 07:34 PM

    Eric Hodel's Avatar

    Additionally, it seems like your name server is not returning a host for rubygems.org.

  3. 4 Posted by siteations on 04 Mar, 2013 10:56 AM

    siteations's Avatar

    First, thanks for your time. I'm not 100% sure what you mean for proxy authentication so I'll have to check but we single sign on with network username/password for most uses including web browsers.

    Here is the debug using -V:

    C:\Ruby200>gem install rails --debug -V
    Exception Errno::EEXIST' at C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:323 - File exists - C:/Users/c5034745/.gem/specs/rubygems.org%80 ExceptionErrno::ENOENT' at C:/Ruby200/lib/ruby/2.0.0/rubygems/remote_fetcher.rb:298 - No such file or directory - C:/Users/c5034745/.gem/specs/rubygems.org%80/latest_specs.4.8
    Exception SocketError' at C:/Ruby200/lib/ruby/2.0.0/net/http.rb:877 - getaddrinfo: No such host is known. ExceptionGem::RemoteFetcher::UnknownHostError' at C:/Ruby200/lib/ruby/2.0.0/rubygems/remote_fetcher.rb:287 - no such name (http://rubygems.org/latest_specs.4.8.gz)
    Exception Gem::SpecificGemNotFoundException' at C:/Ruby200/lib/ruby/2.0.0/rubygems/dependency_installer.rb:284 - Could not find a valid gem 'rails' (>= 0) locally or in a repository ERROR: Could not find a valid gem 'rails' (>= 0), here is why: Unable to download data from http://rubygems.org/ - no such name (http://rubygems.org/latest_specs.4.8.gz) ExceptionErrno::EEXIST' at C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:323 - File exists - C:/Users/c5034745/.gem/specs/rubygems.org%80
    Exception Errno::ENOENT' at C:/Ruby200/lib/ruby/2.0.0/rubygems/remote_fetcher.rb:298 - No such file or directory - C:/Users/c5034745/.gem/specs/rubygems.org%80/prerelease_specs.4.8 ExceptionSocketError' at C:/Ruby200/lib/ruby/2.0.0/net/http.rb:877 - getaddrinfo: No such host is known.
    Exception Gem::RemoteFetcher::UnknownHostError' at C:/Ruby200/lib/ruby/2.0.0/rubygems/remote_fetcher.rb:287 - no such name (http://rubygems.org/prerelease_specs.4.8.gz) ExceptionErrno::EEXIST' at C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:323 - File exists - C:/Users/c5034745/.gem/specs/rubygems.org%80
    Exception Errno::ENOENT' at C:/Ruby200/lib/ruby/2.0.0/rubygems/remote_fetcher.rb:298 - No such file or directory - C:/Users/c5034745/.gem/specs/rubygems.org%80/specs.4.8 ExceptionSocketError' at C:/Ruby200/lib/ruby/2.0.0/net/http.rb:877 - getaddrinfo: No such host is known.
    Exception `Gem::RemoteFetcher::UnknownHostError' at C:/Ruby200/lib/ruby/2.0.0/rubygems/remote_fetcher.rb:287 - no such name (http://rubygems.org/specs.4.8.gz)

    I can browse to it (rubygems.org,) would it not be using the same name server? I'm not a systems guy so please bear with me. Thanks

  4. 5 Posted by Gaurav Manchanda on 09 Mar, 2013 07:18 PM

    Gaurav Manchanda's Avatar

    Have you tried doing this:

    gem install rspec --no-http-proxy

  5. Support Staff 6 Posted by Nick Quaranto on 08 May, 2013 12:25 AM

    Nick Quaranto's Avatar

    Is this still happening?

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.