2016-03-03 127 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