Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Unresolved dependencies on json 1.8.11? #8

Open
amye opened this issue Oct 18, 2015 · 2 comments
Open

Unresolved dependencies on json 1.8.11? #8

amye opened this issue Oct 18, 2015 · 2 comments

Comments

@amye
Copy link

amye commented Oct 18, 2015

Attempting to install using 'bundle install' and I get a failure:

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/amye/.gem/ruby/gems/json-1.8.1 for inspection.
Results logged to /home/amye/.gem/ruby/extensions/x86_64-linux/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' succeeds before bundling.

I'm on Fedora 22 and I'm not sure why it's failing on this exact json gem.

@mscherer
Copy link
Contributor

So, after testing on a clean install, you likely need make, and it should be added on setup.sh. I will continue and list what is needed.

@mscherer
Copy link
Contributor

2nd error:

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));

Updating in Gemfile.lock the version of the json module fix it.

3rd error:

curb.h:44:38: error: invalid type argument of '->' (have 'int')
   #define RHASH_LEN(hash) RHASH(hash)->tbl->num_entries

Same, updating curb fix it. In fact, removing the gemfile.lock so it take more recent version go to the 4th error:

zlib is missing; necessary for building libxml2

when building nokogiri.

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

No branches or pull requests

2 participants