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