Rubyでmongoのgemをインストールしようとしたら以下のようなエラーが発生してしまいました。
どこをどうすればよいのか見当もつかない状態です。
どのようにすればインストールができるようになるか教えていただければ幸いです。
よろしくお願いいたします。
ruby 2.0.0p643 (2015-02-25) [i386-mingw32]
C:\Users>gem install mongo
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mongo:
ERROR: Failed to build gem native extension.
C:/Users/Desktop/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating native-i386-mingw32.def
compiling native.c
In file included from c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby/
defines.h:153:0,
from c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby/
ruby.h:70,
from c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby.
h:33,
from native.c:26:
c:/UsersDesktop/Ruby200/include/ruby-2.0.0/ruby/win32.h: In function '
rb_w32_pow':
c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby/win32.h:801:5: warning
: implicit declaration of function '_controlfp' [-Wimplicit-function-declaration
]
c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby/win32.h:802:16: error:
'_PC_64' undeclared (first use in this function)
c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby/win32.h:802:16: note:
each undeclared identifier is reported only once for each function it appears in
c:/Users/Desktop/Ruby200/include/ruby-2.0.0/ruby/win32.h:802:24: error:
'_MCW_PC' undeclared (first use in this function)
native.c: In function 'rb_object_id_generator_next':
native.c:245:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclarat
ion-after-statement]
make: *** [native.o] Error 1
Gem files will remain installed in C:/Users/Desktop/Ruby200/lib/ruby/ge
ms/2.0.0/gems/bson-3.1.2 for inspection.
Results logged to C:/Users/Desktop/Ruby200/lib/ruby/gems/2.0.0/gems/bso
n-3.1.2/ext/bson/gem_make.out
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/07/16 12:41