Open iokobi opened 6 years ago
Hi,
Firstly, thanks for putting this together - awesome stuff.
I tried deploying to Heroku and I get the following error;
-----> Ruby app detected -----> Compiling Ruby/Rack -----> Using Ruby version: ruby-2.4.4 -----> Installing dependencies using bundler 1.15.2 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Fetching gem metadata from http://rubygems.org/........... Fetching version metadata from http://rubygems.org/. Fetching addressable 2.4.0 Fetching bson 1.12.5 Fetching builder 3.2.2 Installing builder 3.2.2 Using bundler 1.15.2 Fetching daemons 1.2.3 Installing daemons 1.2.3 Fetching eventmachine 1.0.9.1 Installing bson 1.12.5 Installing addressable 2.4.0 Fetching json 1.8.3 Installing eventmachine 1.0.9.1 with native extensions Installing json 1.8.3 with native extensions Fetching jwt 1.5.4 Installing jwt 1.5.4 Fetching multi_json 1.12.0 Installing multi_json 1.12.0 Fetching rack 1.6.4 Installing rack 1.6.4 Fetching tilt 2.0.2 Installing tilt 2.0.2 Fetching bson_ext 1.12.5 Installing bson_ext 1.12.5 with native extensions Fetching mongo 1.12.5 Installing mongo 1.12.5 Fetching twilio-ruby 4.11.1 Installing twilio-ruby 4.11.1 Fetching rack-protection 1.5.3 Installing rack-protection 1.5.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/ruby-2.4.4/bin/ruby -r ./siteconf20181018-217-160zys9.rb extconf.rb creating Makefile current directory: /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator make "DESTDIR=" clean current directory: /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator make "DESTDIR=" compiling generator.c generator.c: In function ‘generate_json’: generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function); did you mean ‘mFixnum’? } else if (klass == rb_cFixnum) { ^~~~~~~~~~ mFixnum generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function); did you mean ‘rb_cFixnum’? } else if (klass == rb_cBignum) { ^~~~~~~~~~ rb_cFixnum 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 /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3 for inspection. Results logged to /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.3/gem_make.out An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that `gem install json -v '1.8.3'` succeeds before bundling. In Gemfile: json Bundler Output: Fetching gem metadata from http://rubygems.org/........... Fetching version metadata from http://rubygems.org/. Fetching addressable 2.4.0 Fetching bson 1.12.5 Fetching builder 3.2.2 Installing builder 3.2.2 Using bundler 1.15.2 Fetching daemons 1.2.3 Installing daemons 1.2.3 Fetching eventmachine 1.0.9.1 Installing bson 1.12.5 Installing addressable 2.4.0 Fetching json 1.8.3 Installing eventmachine 1.0.9.1 with native extensions Installing json 1.8.3 with native extensions Fetching jwt 1.5.4 Installing jwt 1.5.4 Fetching multi_json 1.12.0 Installing multi_json 1.12.0 Fetching rack 1.6.4 Installing rack 1.6.4 Fetching tilt 2.0.2 Installing tilt 2.0.2 Fetching bson_ext 1.12.5 Installing bson_ext 1.12.5 with native extensions Fetching mongo 1.12.5 Installing mongo 1.12.5 Fetching twilio-ruby 4.11.1 Installing twilio-ruby 4.11.1 Fetching rack-protection 1.5.3 Installing rack-protection 1.5.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/ruby-2.4.4/bin/ruby -r ./siteconf20181018-217-160zys9.rb extconf.rb creating Makefile current directory: /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator make "DESTDIR=" clean current directory: /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator make "DESTDIR=" compiling generator.c generator.c: In function ‘generate_json’: generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function); did you mean ‘mFixnum’? } else if (klass == rb_cFixnum) { ^~~~~~~~~~ mFixnum generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function); did you mean ‘rb_cFixnum’? } else if (klass == rb_cBignum) { ^~~~~~~~~~ rb_cFixnum 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 /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/gems/json-1.8.3 for inspection. Results logged to /tmp/build_e5efea1e8f8e0cac6c14cdb0336730e4/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.3/gem_make.out An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that `gem install json -v '1.8.3'` succeeds before bundling. In Gemfile: json ! ! Failed to install gems via Bundler. ! ! Push rejected, failed to compile Ruby app. ! Push failed
Any idea what the issue is and how I can resolve it?
NB: Sadly I am not a developer :(
Thank you.
I have the same issue 😞
Hi,
Firstly, thanks for putting this together - awesome stuff.
I tried deploying to Heroku and I get the following error;
Any idea what the issue is and how I can resolve it?
NB: Sadly I am not a developer :(
Thank you.