Ruby `json` gem 不编译

Ruby `json` gem does not compile

我正在尝试让 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 进行开发。