`bundle install` fails to work
Closed this issue · 2 comments
d2s commented
- Outdated version of
github-pages
fails to get installed on a modern version of Ruby (running on a fresh Ubuntu 17.04 system). Gemfile.lock
should be updated to the latest versions of the dependencies.
bundle install
command fails because Gemfile.lock
is depending on ancient version of github-pages
gem (33 - January 28, 2015 (5.5 KB)
). That fails to get installed on a recent version of Ruby (2.4.1).
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/d2s/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-1.8.2/ext/json/ext/generator
/home/d2s/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170823-25526-5f87r.rb extconf.rb
creating Makefile
current directory: /home/d2s/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-1.8.2/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /home/d2s/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-1.8.2/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:867:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
generator.c:867:25: note: each undeclared identifier is reported only once for each function it appears in
generator.c:869:25: error: ‘rb_cBignum’ undeclared (first use in this function)
} else if (klass == rb_cBignum) {
^~~~~~~~~~
generator.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
Makefile:241: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/d2s/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-1.8.2 for inspection.
Results logged to
/home/d2s/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.2/gem_make.out
An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.2'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 33, which depends on
jekyll-mentions was resolved to 0.2.1, which depends on
html-pipeline was resolved to 1.9.0, which depends on
activesupport was resolved to 4.2.1, which depends on
json
unixorn commented
Thanks!