我感到非常惭愧,因为我无法解决这个问题。我现在好几天了,但不知怎的,我没有成功。当我尝试按照安装步骤进行操作时: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
有人能帮助我吗?感谢
答案 0 :(得分:2)
64位系统
1)如果你想使用ruby版本,那么ruby 2.0
2)您需要在窗口7 x64位
如果你想在窗口7上安装ruby 2或更高版本,那么你需要安装DevKit 64位
使用带有64位的ruby 2
在窗口7上使用DevKit 64位64位系统ruby 32位将无法正常工作
但窗口7 64位系统与Devkit 32位和ruby 32位将起作用
这个问题不会出现