尝试安装时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