2014-09-20 106 views
0

讓我在這裏瘋狂。我無法安裝bson_ext gem。我使用的RubyInstaller和DevKit安裝得非常乾淨。無法安裝bson_ext gem,但其他寶石安裝正常

C:\DevKit>gem install bson_ext 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing bson_ext: 
     ERROR: Failed to build gem native extension. 

     C:/Ruby193/bin/ruby.exe extconf.rb 
checking for asprintf()... no 
checking for ruby/st.h... yes 
checking for ruby/regex.h... yes 
checking for ruby/encoding.h... yes 
creating Makefile 

make 
generating cbson-i386-mingw32.def 
compiling bson_buffer.c 
compiling cbson.c 
cbson.c:25:23: fatal error: arpa/inet.h: No such file or directory 
compilation terminated. 
make: *** [cbson.o] Error 1 


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/bson_ext- 
1.11.1 for inspection. 
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/bson_ext-1.11.1/ext/cbson/ 
gem_make.out 

回答

0

這不再是一個問題,使用Ruby 2.1

2

好的,我得到了我的工作。

在爲了試試這個,我做到了:

刪除的基本文件寶石(下\ LIB \紅寶石) 重新安裝除蒙戈和bson_ext 運行命令「創業板安裝蒙戈-v = 1.9所有其他寶石「 運行命令‘創業板安裝bson_ext -v = 1.9.2’

現在,嘗試運行命令,看看它是否適用於雅

+0

對不起 - 哪個文件我刪除?我只在\ lib \ ruby​​下看到四個子文件夾(它們是1.9.1,gems,site_ruby和vendor_ruby) – Phil 2014-09-23 01:05:25

+0

幸運的是,這看起來不再是Ruby 2.1的問題 – Phil 2015-06-11 15:15:09