Open faneaatiku opened 5 years ago
gem install json -v '1.8.1'
this my error 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.
i even tried gem install json -v '1.8.1' - i get the following
Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
/usr/bin/ruby2.3 -r ./siteconf20190416-23176-qqsvew.rb extconf.rb creating Makefile
current directory: /var/lib/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" clean
current directory: /var/lib/gems/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 [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ Makefile:239: recipe for target 'generator.o' failed make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-1.8.1 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.1/gem_make.out
this my error 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.i even tried gem install json -v '1.8.1' - i get the following
Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
/usr/bin/ruby2.3 -r ./siteconf20190416-23176-qqsvew.rb extconf.rb creating Makefile
current directory: /var/lib/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" clean
current directory: /var/lib/gems/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 [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ Makefile:239: recipe for target 'generator.o' failed make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-1.8.1 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.1/gem_make.out
Use rbenv install -v 2.2.7
getting the following error when running: bundle install --without development test --path vendor/bundle
`Fetching json 1.8.1 Installing json 1.8.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/deploy/.rbenv/versions/2.3.8/bin/ruby -r ./siteconf20190225-20463-gh6sk.rb extconf.rb creating Makefile
current directory: /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" clean
current directory: /home/deploy/peatio/vendor/bundle/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 [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ Makefile:238: recipe for target 'generator.o' failed make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/deploy/peatio/vendor/bundle/ruby/2.3.0/gems/json-1.8.1 for inspection. Results logged to /home/deploy/peatio/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/json-1.8.1/gem_make.out
An error occurred while installing json (1.8.1), and Bundler cannot continue. Make sure that
gem install json -v '1.8.1' --source 'https://rubygems.org/'
succeeds before bundling. `I have to say i used rbenv 2.3.8 because 2.2.2 was incompatible.