-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundle install without development issue #44
Comments
gem install json -v '1.8.1' |
this my error An error occurred while installing json (1.8.1), and Bundler cannot continue. i even tried gem install json -v '1.8.1' - i get the following Building native extensions. This could take a while...
/usr/bin/ruby2.3 -r ./siteconf20190416-23176-qqsvew.rb extconf.rb current directory: /var/lib/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator current directory: /var/lib/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make failed, exit code 2 Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-1.8.1 for inspection. |
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.
The text was updated successfully, but these errors were encountered: