Can't install RoR 2.3.2 on Windows 7 x64

Discussion in 'Ruby' started by Sergey Sheypak, Feb 6, 2011.

  1. 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?

    --
    Posted via http://www.ruby-forum.com/.
     
    Sergey Sheypak, Feb 6, 2011
    #1
    1. Advertising

  2. Sergey Sheypak

    Luis Lavena Guest

    On Feb 6, 12:34 pm, Sergey Sheypak <> wrote:
    > 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:

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


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


    And try gem installation again.

    --
    Luis Lavena
     
    Luis Lavena, Feb 6, 2011
    #2
    1. Advertising

  3. 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...

    --
    Posted via http://www.ruby-forum.com/.
     
    Sergey Sheypak, Feb 6, 2011
    #3
  4. 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.

    --
    Posted via http://www.ruby-forum.com/.
     
    Sergey Sheypak, Feb 6, 2011
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SMMT

    Windows x64

    SMMT, Apr 29, 2004, in forum: Java
    Replies:
    5
    Views:
    1,762
    Roedy Green
    Apr 29, 2004
  2. Replies:
    8
    Views:
    649
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 11, 2007
  3. Sankar Kumar

    Need help to install ROR with MS-SQL

    Sankar Kumar, Mar 16, 2009, in forum: Ruby
    Replies:
    0
    Views:
    91
    Sankar Kumar
    Mar 16, 2009
  4. Sankar Kumar

    Help to install ROR with MS-SQL

    Sankar Kumar, Mar 16, 2009, in forum: Ruby
    Replies:
    1
    Views:
    89
    Damjan Rems
    Mar 17, 2009
  5. Esen Sagynov

    Cannot install a gem on Windows x64

    Esen Sagynov, Oct 13, 2010, in forum: Ruby
    Replies:
    4
    Views:
    224
    Luis Lavena
    Oct 14, 2010
Loading...

Share This Page