5
這是我不斷收到的錯誤。我安裝了DevKit並遵循了所有說明。json gem不會在Windows上安裝
gem install json -v '1.6.3'
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:/Program Files/Ruby/Ruby192/bin/ruby.exe" extconf.rb
creating Makefile
make
Makefile:160: warning: overriding commands for target `C:/Program'
Makefile:153: warning: ignoring old commands for target `C:/Program'
C:/Program Files/Ruby/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_parser'" > par
ser-i386-mingw32.def
/bin/sh: C:/Program: No such file or directory
make: *** [parser-i386-mingw32.def] Error 127
Gem files will remain installed in C:/Program Files/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/json-1.6.3 for inspection.
Results logged to C:/Program Files/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/json-1.6.3/ext/json/ext/parser/gem_make.out
有沒有人有解決這個問題?
這讓我指出了正確的方向,我也備份了我的PATH並添加了這個新的c:\ ruby \ bin到它,所以'gem安裝任何'會工作,安裝好所有東西后我恢復了我的路徑,我們很好去! – Xedecimal 2012-10-24 14:55:41
工程像魅力。謝謝你,塞巴斯蒂安。我還建議在系統路徑環境變量中更改Ruby條目以指向'c:\ ruby'目錄,以避免將來出現這些類型的問題。 – 2012-11-12 22:32:31