Skip to content

Instantly share code, notes, and snippets.

@sanemat
Created January 22, 2015 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanemat/7b893ee80eb3c03e3ef1 to your computer and use it in GitHub Desktop.
Save sanemat/7b893ee80eb3c03e3ef1 to your computer and use it in GitHub Desktop.
json-1-8-0-with-bundler-1.7.12
```
$ bundle
Fetching gem metadata from https://rubygems.org/.......
Fetching git://github.com/lsegal/yard
Installing rake 10.1.0
Installing RedCloth 4.2.9
Installing i18n 0.6.5
Installing minitest 4.7.5
Installing multi_json 1.7.9
Installing atomic 1.1.13
Installing thread_safe 0.1.2
Installing tzinfo 0.3.37
Installing activesupport 4.0.0
Installing builder 3.2.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/sane/.anyenv/envs/rbenv/versions/2.2.0/bin/ruby -r ./siteconf20150122-63655-mzgjl8.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
/Users/sane/.anyenv/envs/rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:793:9: note: macro 'rb_str_new' defined here
#define rb_str_new(str, len) __extension__ ( \
^
In file included from generator.c:1:
./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char *, long)' [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^ ~~~~~~~~~~
1 warning and 1 error generated.
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/sane/work/ruby-study/rubydoc.info/vendor/bundle/ruby/2.2.0/gems/json-1.8.0 for inspection.
Results logged to /Users/sane/work/ruby-study/rubydoc.info/vendor/bundle/ruby/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/json-1.8.0/gem_make.out
An error occurred while installing json (1.8.0), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.0'` succeeds before bundling.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment