2016-03-03 128 views
0

windows 10. ruby​​ 2.2.4。我已经尝试了所有的开发工具以及解决这个问题的方法。我已经看了几个小时和几个小时没有成功。当我尝试捆绑它时不会安装json。当我尝试安装json时,它说无法安装json(Ruby不起作用)

"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" 

回答

0

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

+0

我已经做到了,这些步骤很好,但是当我做“gem install json --platform = ruby​​”时,它给我错误提示“未能创建gem原生扩展名”“make”DESTDIR =“clean” “make不被识别为内部或外部命令”“Gem文件将保持安装在C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/json-1.8.3中进行检查。”和其他一些东西。我试过在互联网上的一切来解决这个问题。 – garrettheid