Ruby bson_ext gem 没有安装在 windows
Ruby bson_ext gem is not installing in windows
我安装了 mongo gem。但是在运行时它说需要安装 bson_ext gem 。所以我想在 windows 7 professional 中安装 bson_ext gem 但我做不到。我在安装时遇到以下错误,因此我无法将 Ruby 连接到我的 mongo 服务器。谁能帮我解决这个问题。我搜索了所有区域,发现有人说 "gem update --system" 可以解决问题。但即使我得到 gem 更新选项的错误。我是 Ruby 和 Cucumber 的新手。
C:\Manimaran\Ruby>gem source
*** CURRENT SOURCES ***
http://rubygems.org/
C:\Manimaran\Ruby>gem install bson_ext
WARNING: Error fetching data: Errno::ETIMEDOUT: A connection attempt failed bec
ause the connected party did not properly respond after a period of time, or est
ablished connection failed because connected host has failed to respond. - conne
ct(2) (http://rubygems.org/specs.4.8.gz)
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
文件cbson.c中的#include 应改为#include。然后你需要构建你自己的 gem 并在本地安装它
以下线程完美地描述了它:
windows: rails: error installing bson_ext
我安装了 mongo gem。但是在运行时它说需要安装 bson_ext gem 。所以我想在 windows 7 professional 中安装 bson_ext gem 但我做不到。我在安装时遇到以下错误,因此我无法将 Ruby 连接到我的 mongo 服务器。谁能帮我解决这个问题。我搜索了所有区域,发现有人说 "gem update --system" 可以解决问题。但即使我得到 gem 更新选项的错误。我是 Ruby 和 Cucumber 的新手。
C:\Manimaran\Ruby>gem source
*** CURRENT SOURCES ***
http://rubygems.org/
C:\Manimaran\Ruby>gem install bson_ext
WARNING: Error fetching data: Errno::ETIMEDOUT: A connection attempt failed bec
ause the connected party did not properly respond after a period of time, or est
ablished connection failed because connected host has failed to respond. - conne
ct(2) (http://rubygems.org/specs.4.8.gz)
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
文件cbson.c中的#include 应改为#include。然后你需要构建你自己的 gem 并在本地安装它
以下线程完美地描述了它:
windows: rails: error installing bson_ext