我感到很惭愧,因为我不能在网上解决这个问题。我已经谷歌了好几天了,但不知怎么的,我没有成功。当我尝试按照上的安装步骤操作时:https://github.com/oneclick/rubyinstaller/wiki/Development-Kit最后,我想输入所有json,得到了这个错误:
C:Devkit>gem install json --platform=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:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating generator-i386-mingw32.def
compiling generator.c
linking shared-object json/ext/generator.so
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: can
not find -lmsvcrt-ruby191
collect2: ld returned 1 exit status
make: *** [generator.so] Error 1
Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/json-1.8.0 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.
0/ext/json/ext/generator/gem_make.out
有人能帮我吗?感谢
在windows 7 64位系统上
1) 如果您想使用ruby版本lesst,那么使用ruby 2.02) 您需要从安装DevKit 32位http://rubyinstaller.org/downloads/在窗口7 x64位上
如果你想在windows 7上安装ruby 2或更高版本,那么你需要安装DevKit 64位
带有64位的ruby 2
在windows 7上使用DevKit 64位64位系统ruby 32位将无法使用
但是windows 7的64位系统和Devkit的32位和ruby的32位将工作
不会出现此问题