无法安装json(Ruby不起作用)

时间:2016-03-03 14:59:20

标签: json rubygems

windows 10. ruby​​ 2.2.4。我已经尝试了所有的devkit东西以及解决这个问题的方法。我已经看了好几个小时,没有成功。当我尝试捆绑时,它不会安装json。当我尝试安装json时,它说

"Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing json:
        ERROR: Failed to build gem native extension.

    C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160303-4132-alefq2.rb extconf.rb
creating Makefile

make "DESTDIR=" clean
'make' is not recognized as an internal or external command,
operable program or batch file.

make "DESTDIR="
'make' is not recognized as an internal or external command,
operable program or batch file.

make failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/json-1.8.3 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/json-1.8.3/gem_make.out"

2 个答案:

答案 0 :(得分:1)

我面临着同样的问题。我克隆的仓库中的Gemfile.lock的json版本比我已经安装的版本旧。我没有设法卸载较新的版本,但是我确实用新版本替换了Gemfile.lock中的旧版本号,现在看来可以正常工作了。

答案 1 :(得分:0)

您应该运行devkit installation scripts 特别要注意devkitvars.bat