Skip to content
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

json1.7.4 #513

Open
Liu-XiaoDao opened this issue Sep 15, 2017 · 0 comments
Open

json1.7.4 #513

Liu-XiaoDao opened this issue Sep 15, 2017 · 0 comments

Comments

@Liu-XiaoDao
Copy link

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /usr/local/rvm/gems/ruby-2.3.1/gems/json-1.7.4/ext/json/ext/generator

/usr/local/rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20170915-5671-1g31pvd.rb extconf.rb
creating Makefile

current directory: /usr/local/rvm/gems/ruby-2.3.1/gems/json-1.7.4/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /usr/local/rvm/gems/ruby-2.3.1/gems/json-1.7.4/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:158:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
../fbuffer/fbuffer.h:158:20: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
In file included from generator.c:2:0:
generator.c: In function 'cState_aref':
generator.h:96:27: warning: variable 'state' set but not used [-Wunused-but-set-variable]
JSON_Generator_State *state;
^
generator.c:632:5: note: in expansion of macro 'GET_STATE'
GET_STATE(self);
^
Makefile:238: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.3.1/gems/json-1.7.4 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.3.1/extensions/x86_64-linux/2.3.0/json-1.7.4/gem_make.out

An error occurred while installing json (1.7.4), and Bundler cannot continue.
Make sure that gem install json -v '1.7.4' succeeds before bundling.

In Gemfile:
activeadmin was resolved to 0.4.4, which depends on
devise was resolved to 2.1.2, which depends on
railties was resolved to 3.2.7, which depends on
rdoc was resolved to 3.12, which depends on
json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant