Gem Json 1.8.1 ,проблемы с инсталляцией.Как решить?
Проблемы при генерации bundle install:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1/ext/json/ext/generator
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160721-8878-1yafz8p.rb extconf.rb
creating Makefile
current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [enabled by default]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.3.0/gems/json-1.8.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.1/gem_make.out
Using minitest 5.4.1
Using thread_safe 0.3.4
Using builder 3.2.2
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.5
Using sass 3.2.19
Using thor 0.19.1
Using coffee-script-source 1.8.0
Using execjs 2.2.1
Using arel 5.0.1.20140414130214
Using bundler 1.12.5
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using addressable 2.3.6
Using bcrypt 3.1.7
Using coderay 1.1.0
Using debug_inspector 0.0.2
Using colorize 0.7.3
Using net-ssh 2.9.1
Using chunky_png 1.3.1
Using fssm 0.2.10
Using orm_adapter 0.5.0
Using libv8 3.16.14.3
Using modernizr-rails 2.7.1
Using normalize-rails 3.0.1
Using pg 0.17.1
Using ref 1.0.5
Using spring 1.1.3
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
~/workspace (master) $ gem list