讓我在這裏瘋狂。我無法安裝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
對不起 - 哪個文件我刪除?我只在\ lib \ ruby下看到四個子文件夾(它們是1.9.1,gems,site_ruby和vendor_ruby) – Phil 2014-09-23 01:05:25
幸運的是,這看起來不再是Ruby 2.1的問題 – Phil 2015-06-11 15:15:09