小编jay*_* pk的帖子

无法安装bson_ext 1.8.2 gem

我无法在我的mongo项目目录中安装bson_ext 1.8.2 gem.具体我试过跑步bundle installgem install bson_ext -v '1.8.2'

我在论坛上尝试了其他解决方案但是徒劳无功.

Installing bson_ext (1.8.2) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /home/jayanth/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb 
checking for asprintf()... yes
checking for ruby/st.h... yes
checking for ruby/regex.h... yes
checking for ruby/encoding.h... yes
creating Makefile

make
compiling bson_buffer.c
compiling encoding_helpers.c
compiling cbson.c
cbson.c: In function ‘write_utf8’:
cbson.c:118:36: warning: pointer targets in passing argument 1 of ‘check_string’ differ in signedness [-Wpointer-sign]
In file included from cbson.c:66:0:
encoding_helpers.h:26:10: note: expected ‘const unsigned char *’ …
Run Code Online (Sandbox Code Playgroud)

ruby gem bson bson-ext

5
推荐指数
1
解决办法
3338
查看次数

标签 统计

bson ×1

bson-ext ×1

gem ×1

ruby ×1