rails installation fails
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/
Support Staff 2 Posted by Eric Hodel on 01 Mar, 2013 07:33 PM
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
Support Staff 3 Posted by Eric Hodel on 01 Mar, 2013 07:34 PM
Additionally, it seems like your name server is not returning a host for rubygems.org.
4 Posted by siteations on 04 Mar, 2013 10:56 AM
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.8Exception
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%80Exception
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%80Exception
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
5 Posted by Gaurav Manchanda on 09 Mar, 2013 07:18 PM
Have you tried doing this:
gem install rspec --no-http-proxySupport Staff 6 Posted by Nick Quaranto on 08 May, 2013 12:25 AM
Is this still happening?