Ruby DevKit on Windows 8, still can't install native extension -


i'm using ruby 1.9.3 on windows8-64bit. ruby installation in c:\ruby193 , devkit in c:\devkit

i followed devkit installation , it's success.

then guide asks me test running gem install json --platform=ruby returns error (looks similar before having devkit installed):

note: other question here told me add devkit installation folder environment path, did still got same error.

c:\users\myname>gem install json --platform=ruby building native extensions.  take while... error:  error installing json:         error: failed build gem native extension.      c:/ruby193/bin/ruby.exe extconf.rb creating makefile  make generating generator-i386-mingw32.def compiling generator.c in file included c:/ruby193/include/ruby-1.9.1/ruby/ruby.h:1381:0,                  c:/ruby193/include/ruby-1.9.1/ruby.h:32,                  ../fbuffer/fbuffer.h:5,                  generator.c:1: c:/ruby193/include/ruby-1.9.1/ruby/missing.h:41:8: error: redefinition of 'struc t timespec' in file included c:\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../. ./../../i686-w64-mingw32/include/process.h:12:0,                  c:/ruby193/include/ruby-1.9.1/ruby/win32.h:62,                  c:/ruby193/include/ruby-1.9.1/ruby/defines.h:223,                  c:/ruby193/include/ruby-1.9.1/ruby/ruby.h:67,                  c:/ruby193/include/ruby-1.9.1/ruby.h:32,                  ../fbuffer/fbuffer.h:5,                  generator.c:1: c:\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw 32/include/sys/types.h:89:8: note: defined here in file included c:/ruby193/include/ruby-1.9.1/ruby/ruby.h:1381:0,                  c:/ruby193/include/ruby-1.9.1/ruby.h:32,                  ../fbuffer/fbuffer.h:5,                  generator.c:1: c:/ruby193/include/ruby-1.9.1/ruby/missing.h:48:8: error: redefinition of 'struc t timezone' in file included c:/ruby193/include/ruby-1.9.1/ruby/win32.h:63:0,                  c:/ruby193/include/ruby-1.9.1/ruby/defines.h:223,                  c:/ruby193/include/ruby-1.9.1/ruby/ruby.h:67,                  c:/ruby193/include/ruby-1.9.1/ruby.h:32,                  ../fbuffer/fbuffer.h:5,                  generator.c:1: c:\devkit\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw 32/include/time.h:260:8: note: defined here make: *** [generator.o] error 1 

any solution? thanks

sorry, used wrong devkit.

for ruby 1.9.3 , below, should use devkit-tdm-32-4.5.2-20111229-1559-sfx.exe mingw 2.0 , above.

it works great now.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -