Can't install RoR 2.3.2 on Windows 7 x64

S

Sergey Sheypak

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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NoMethodError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `Gem::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?
 
L

Luis Lavena

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
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:

And try gem installation again.
 
S

Sergey Sheypak

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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `NameError' 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
Exception `ArgumentError' 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...
 
S

Sergey Sheypak

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top