gem install bson-4.2.2.gem giving error on windows 7

120 views
Skip to first unread message

Jai Shanker

unread,
Sep 8, 2017, 2:11:50 PM9/8/17
to BSON
Deal All,

Getting below error when installing gem install bson-4.2.2.gem

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing bson-4.2.2.gem:
        ERROR: Failed to build gem native extension.

    D:/ruby/ruby/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR="
generating bson_native-i386-mingw32.def
compiling bson_native.c
In file included from d:/ruby/ruby/include/ruby-2.0.0/ruby/defines.h:153:0,
                 from d:/ruby/ruby/include/ruby-2.0.0/ruby/ruby.h:70,
                 from d:/ruby/ruby/include/ruby-2.0.0/ruby.h:33,
                 from bson_native.c:16:
d:/ruby/ruby/include/ruby-2.0.0/ruby/win32.h: In function 'rb_w32_pow':
d:/ruby/ruby/include/ruby-2.0.0/ruby/win32.h:810:5: warning: implicit declaration of function '_controlfp' [-Wimplicit-function-declaration]
bson_native.c: In function 'rb_bson_byte_buffer_get_byte':
bson_native.c:202:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:202:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:202:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_bytes':
bson_native.c:218:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:218:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:218:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_cstring':
bson_native.c:235:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:235:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:235:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_decimal128_bytes':
bson_native.c:250:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:250:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:250:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_double':
bson_native.c:265:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:265:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:265:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_int32':
bson_native.c:280:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:280:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:280:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_int64':
bson_native.c:295:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:295:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:295:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c: In function 'rb_bson_byte_buffer_get_string':
bson_native.c:312:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:312:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:312:3: warning: too many arguments for format [-Wformat-extra-args]
bson_native.c:316:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:316:3: warning: unknown conversion type character 'z' in format [-Wformat]
bson_native.c:316:3: warning: too many arguments for format [-Wformat-extra-args]
In file included from bson_native.c:21:0:
bson_native.c: At top level:
native-endian.h:145:17: warning: '__bson_uint32_swap_slow' defined but not used [-Wunused-function]
native-endian.h:169:17: warning: '__bson_uint64_swap_slow' defined but not used [-Wunused-function]
native-endian.h:196:15: warning: '__bson_double_swap_slow' defined but not used [-Wunused-function]
linking shared-object bson_native.so

make "DESTDIR=" install
/usr/bin/install -c -m 0755 bson_native.so ./.gem.20170908-8508-1hsh33j
make: execvp: /usr/bin/install: Permission denied
make: *** [install-so] Error 127


Gem files will remain installed in D:/ruby/ruby/lib/ruby/gems/2.0.0/gems/bson-4.2.2 for inspection.
Results logged to D:/ruby/ruby/lib/ruby/gems/2.0.0/gems/bson-4.2.2/ext/bson/gem_make.out

Thanks
Jai
Reply all
Reply to author
Forward
0 new messages