ruby - Why did gem install bson_ext fail on Windows? -
i got error when install bson_ext on windows.
the error message is:
temporarily enhancing path include devkit... building native extensions. take while... error: error installing bson_ext: error: failed build gem native extension. c:/ruby193/bin/ruby.exe extconf.rb checking asprintf()... no checking ruby/st.h... yes checking ruby/regex.h... yes checking ruby/encoding.h... yes creating makefile make "destdir=" generating cbson-i386-mingw32.def compiling bson_buffer.c compiling cbson.c cbson.c:150:15: warning: tokens @ end of #ifdef directive cbson.c: in function 'pack_extra': cbson.c:201:27: warning: cast pointer integer of different size cbson.c: in function 'write_element': cbson.c:211:28: warning: cast pointer integer of different size cbson.c:317:17: warning: implicit declaration of function '_scprintf' compiling encoding_helpers.c linking shared-object bson_ext/cbson.so c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lmsvcrt-ru by191 collect2: ld returned 1 exit status make: *** [cbson.so] error 1 gem files remain installed in c:/ruby193/lib/ruby/gems/1.9.1/gems/bson_ext-1.9.1 inspection. results logged c:/ruby193/lib/ruby/gems/1.9.1/gems/bson_ext1.9.1/ext/cbson/gem_make.out
can me?
Comments
Post a Comment