I have my ruby environment up and running (got via RubyInstaller). Whenever I try to install rails with the following command:
gem install --http-proxy http://localhost:3128 rails --debug -V
I start getting errors and hence I can't install it:
Exception `NameError' at C:/Ruby192/lib/ruby/1.9.1/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception `NameError' at C:/Ruby192/lib/ruby/1.9.1/syck/tag.rb:81 - method `yaml_as' not defined in Module
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
ERROR: Loading command: install (Interrupt)
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/package.rb:92:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/format.rb:9:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/installer.rb:10:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/command_manager.rb:170:in `rescue in load_and_instantiate'
[..]
Can anyone help? Thanks