嘗試安裝時bson_ext我看到錯誤......安裝JSON寶石正常工作也需要構建本地擴展 - 我已經嘗試了一切看到了類似的問題,沒有很好的答案窗口:軌道:錯誤安裝bson_ext
$ 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
$ gem install json
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed json-1.8.1
1 gem installed
Installing ri documentation for json-1.8.1...
Installing RDoc documentation for json-1.8.1...
我遇到同樣的問題。其他人可以通過以下方式解決類似問題:'gem update --system;寶石安裝bson_ext「,但它不適合我。 – 2014-09-30 01:50:17
我試圖手動安裝gem文件,從這裏下載文件:http://rubygems.org/gems/bson_ext。我得到了與上面相同的錯誤,提示要麼A)我們都有相同的環境問題或B)有一個問題與寶石文件。 – 2014-09-30 02:03:19
我試過寶石更新 - 系統沒有爲我工作:( – lemon 2014-10-02 00:02:36