在安装Ruby on Rails (通过gem install rails)时,您可能会收到以下错误消息:
c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:109:14: error: size of array 'ruby_check_sizeof_voidp' is negative还会有很多类似这样的警告:
c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:1333:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]和一个额外的错误
c:/Ruby193/include/ruby-1.9.1/ruby/missing.h:41:8: error: redefinition of 'struct timespec'为什么会发生这种情况,我如何才能成功安装Rails?
发布于 2013-03-21 08:11:59
当你为你的Ruby1.9.3版本安装了错误的DevKit版本时就会发生这种情况,例如,如果你将DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe安装到Ruby1.9.3版本中。
要纠正这个问题,请重新安装Ruby并安装适合您的Ruby版本的正确DevKit,如标题为“哪个开发工具包?”在http://rubyinstaller.org/downloads。
https://stackoverflow.com/questions/15537191
复制相似问题