When I try to setup ruby gems on Windows 7 using http://rubyinstaller.org/:
ruby setup.rb
I get the following error
C:/rubygems-2.4.5/lib/rubygems.rb:1239:in `<top (required)>': uninitialized constant Gem::Specification (NameError)
from setup.rb:32:in `require'
from setup.rb:32:in `<main>'
How can I resolve this issue? I've tried using Ruby 2.1.5 and 1.9.3-p551.
Edit
C:\>ruby -version
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]-e:1:in `<main>': undefined local variable or method `rsion' for main:Object (NameError)
The path environment variable is set to C:\Ruby21\bin.
which rubyandwhich gem