Ruby DevKit troubles

Hi everyone,

I am having some trouble installing rubygems on a windows system. I
have tried to install the devkit but so far I am not able to use the
“gem” command in “irb”

System: Windows 2008 R2 Standard 64-bit
Ruby version: 2.2.3(x64)
DevKit: DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

After installing ruby I downloaded Devkit and created a folder
“C:\DevKit”. In a terminal I ran “ruby dk.rb init”. Then edited
“config.yml” to include the directory ruby is installed in, the config
file looks like this:

  • C:/Ruby22-64x. when I run “ruby dk.rb install” this is what prints

c:\Ruby-DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby22
[INFO] Installing ‘C:/Ruby22-x64/lib/ruby/site_ruby/devkit.rb’

So I think everything works. when I run interactive ruby and try
various command I get the following errors:

irb(main):003:0> gem rex install
NameError: undefined local variable or method install' for main:Object from (irb):3 from C:/Ruby22-x64/bin/irb:11:in
irb(main):004:0> gem install rubygems-update
NameError: undefined local variable or method rubygems' for main:Object from (irb):4 from C:/Ruby22-x64/bin/irb:11:in
irb(main):005:0> gems install nexpose
NameError: undefined local variable or method nexpose' for main:Object from (irb):5 from C:/Ruby22-x64/bin/irb:11:in
irb(main):006:0> gem update --system
ArgumentError: wrong number of arguments (0 for 1+)
from (irb):6:in system' from (irb):6 from C:/Ruby22-x64/bin/irb:11:in

Any ideas what I’m doing wrong?

Chris Tos wrote in post #1178872:

irb(main):003:0> gem rex install
NameError: undefined local variable or method `install’ for main:Object

Any ideas what I’m doing wrong?

‘gem’ is a system command,not a ruby/irb instruction !

c:> gem install rex

Perfect Thank you!!!