Can't install RoR 2.3.2 on Windows 7 x64

Hi, I’ve met strange problem using Ruby 1.8.6 on Windows 7 x64.
I’ve successfully installed Ruby + RoR 2.3.2 on Windows 7 x32, but
failed with x64.
Please, see the result:

C:\Users\Admin>ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

C:\Users\Admin>gem install rails --debug --no-http-proxy --remote
–version 2.3.
2
Exception Errno::ENOENT' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file .rb:51 - No such file or directory - C:\Users\Admin/.gemrc ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::BuildCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::CertCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::CheckCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::ContentsCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::DependencyCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::EnvironmentCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::HelpCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::InstallCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::OutdatedCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::PristineCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::QueryCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::ListCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::RdocCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::SearchCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::SourcesCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::SpecificationCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::UninstallCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::UnpackCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::CleanupCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::UpdateCommand ExceptionNoMethodError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:
258 - undefined method []=' for #<Gem::ConfigFile:0x4756c74> ERROR: While executing gem ... (NoMethodError) undefined method[]=’ for #Gem::ConfigFile:0x4756c74

C:\Users\Admin>gem install rails --debug --version 2.3.2
Exception Errno::ENOENT' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file .rb:51 - No such file or directory - C:\Users\Admin/.gemrc ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::BuildCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::CertCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::CheckCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::ContentsCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::DependencyCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::EnvironmentCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::HelpCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::InstallCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::OutdatedCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::PristineCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::QueryCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::ListCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::RdocCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::SearchCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::SourcesCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::SpecificationCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::UninstallCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::UnpackCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:145 - uninitialized constant Gem::Commands::CleanupCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager .rb:145 - uninitialized constant Gem::Commands::UpdateCommand ExceptionGem::RemoteSourceException’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygem
s/remote_fetcher.rb:72 - HTTP Response 302
ERROR: While executing gem … (Gem::RemoteSourceException)
HTTP Response 302

I’ve never met such problem, I really don’t have .gemrc, I’ve tried to
create and place it at c:/Users/MyProfile:
gemhome: D:/ruby/lib/ruby/gems/1.8/gems/
gempath:

  • D:/ruby/lib/ruby/gems/1.8/gems/
    but it really doesn’t help.

What can I try next?

On Feb 6, 12:34pm, Sergey S. [email protected] wrote:

2
s/remote_fetcher.rb:72 - HTTP Response 302
ERROR: While executing gem … (Gem::RemoteSourceException)
HTTP Response 302

I’ve never met such problem.

What can I try next?

Change your gem sources:

C:\Users\Luis>gem sources

Will display your current gem sources, if it says gems.rubyforge.org,
then you’re using the old repository (which could indicate the 302
redirect you’re receiving)

Do the following:

gem sources --remove http://gems.rubyforge.org

gem sources --add http://rubygems.org

And try gem installation again.

Your solution didn’t work.
I’ve installed rubygems-1.3.7 and then installed rails. Now, it’s ok.
Previous gem manager didn’t allow me to add or delete url to repo
sources.
Problem has been solved.

I even can’t get sources list:

=====================================
D:\Program Files (x86)\Far>gem sources -l
*** CURRENT SOURCES ***

ERROR: While executing gem … (Gem::RemoteSourceException)
HTTP Response 302

=====================================
D:\Program Files (x86)\Far>gem sources
*** CURRENT SOURCES ***

ERROR: While executing gem … (Gem::RemoteSourceException)
HTTP Response 302

=====================================
D:\Program Files (x86)\Far>gem sources -l --debug
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::BuildCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::CertCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::CheckCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::ContentsCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::DependencyCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::EnvironmentCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::HelpCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::InstallCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::OutdatedCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::PristineCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::QueryCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::ListCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::RdocCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::SearchCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::SourcesCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::SpecificationCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::UninstallCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::UnpackCommand
Exception NameError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::CleanupCommand ExceptionNameError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 -
uninitialized constant Gem::Commands::UpdateCommand
*** CURRENT SOURCES ***

Exception ArgumentError' at D:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:68 - marshal data too short ExceptionArgumentError’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:68 -
marshal data too short
Exception `Gem::RemoteSourceException’ at
D:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:72 - HTTP
Response 302
ERROR: While executing gem … (Gem::RemoteSourceException)
HTTP Response 302

So I’m going to apply your solution, but unfortunately I can’t get list
of sources…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs