Ruby`json` gem不能编译

我正在试图让Rails在Windows系统上工作。 我安装了RubyInstaller和Devkit,但是我似乎无法安装json gem。 当我尝试gem install json我得到:

 Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb creating Makefile make generating generator-i386-mingw32.def compiling generator.c generator.c:1:0: error: CPU you selected does not support x86-64 instruction set generator.c:1:0: error: CPU you selected does not support x86-64 instruction set make: *** [generator.o] Error 1 Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.3 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.3/ext/json/ext/generator/gem_make.out 

这可能是我的Ruby版本(我有2.2和1.9),但我不知道。 到底是怎么回事?

在@Azolo发表他的评论之后,我发现我使用的DevKit版本与我正在运行的Ruby版本不匹配。 问题出现了,因为我需要在Heroku客户端的路径上运行Ruby 1.9.3,但是试图使用2.2 DevKit(因为我通常使用Ruby 2.2进行开发。