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.``
`➜ portfolio git:(master) ✗ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies....
Using rake 11.2.2
Using CFPropertyList 2.3.2
Using i18n 0.7.0
Installing json 1.8.3 with native extensions
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.0.0
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Using addressable 2.4.0
Using net-ssh 3.2.0
Using io-like 0.3.0
Using ast 2.2.0
Using awesome_print 1.6.1
Using bcrypt 3.1.11
Using coderay 1.1.1
Using debug_inspector 0.0.2
Using uniform_notifier 1.9.0
Using bundler 1.14.6
Using byebug 8.2.4
Using capistrano-harrow 0.5.3
Using ffi 1.9.10
Using cliver 0.3.2
Using docile 1.1.5
Using simplecov-html 0.10.0
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using concurrent-ruby 1.0.1
Using deep_merge 1.0.1
Using safe_yaml 1.0.4
Using database_cleaner 1.5.3
Using orm_adapter 0.5.0
Using diff-lcs 1.2.5
Using enum_help 0.0.15
Using excon 0.49.0
Using formatador 0.2.5
Using multi_json 1.11.3
Using ipaddress 0.8.3
Using xml-simple 1.1.5
Using inflecto 0.0.2
Using trollop 2.1.2
Using tilt 2.0.2
Using sexp_processor 4.7.0
Using hashdiff 0.3.0
Using hirb 0.7.3
Using unicode-display_width 0.1.1
Using kgio 2.10.0
Using rb-fsevent 0.9.7
Using method_source 0.8.2
Using mini_magick 4.5.1
Using mysql2 0.4.4
Using newrelic_rpm 3.15.0.314
Installing oj 2.14.6 with native extensions
Using websocket-extensions 0.1.2
Using powerpack 0.1.1
Using slop 3.6.0
Using rails-db-resetup 0.0.2
Using rainbow 2.1.0
Using raindrops 0.16.0
Using rspec-support 3.4.1
Using ruby-progressbar 1.8.0
Using rubyzip 1.2.0
Using sass 3.4.22
Using websocket 1.2.3
Using spring 1.7.1
Using timecop 0.8.1
Using vcr 3.0.1
Using fission 0.5.0
Using faker 1.6.3
Using validates_email_format_of 1.6.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/reza/.rvm/gems/ruby-2.4.0/gems/json-1.8.3/ext/json/ext/generator
current directory: /home/reza/.rvm/gems/ruby-2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /home/reza/.rvm/gems/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)
} else if (klass == rb_cFixnum) {
^~~~~~
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)
} 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/reza/.rvm/gems/ruby-2.4.0/gems/json-1.8.3 for inspection.
Results logged to /home/reza/.rvm/gems/ruby-2.4.0/extensions/x86_64-linux/2.4.0/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.
➜ portfolio git:(master) ✗
`
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.```➜ portfolio git:(master) ✗ bundle install Fetching gem metadata from https://rubygems.org/......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Resolving dependencies.... Using rake 11.2.2 Using CFPropertyList 2.3.2 Using i18n 0.7.0 Installing json 1.8.3 with native extensions Using minitest 5.8.4 Using thread_safe 0.3.5 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile2 2.0.0 Using rack 1.6.4 Using mime-types-data 3.2016.0221 Using arel 6.0.3 Using addressable 2.4.0 Using net-ssh 3.2.0 Using io-like 0.3.0 Using ast 2.2.0 Using awesome_print 1.6.1 Using bcrypt 3.1.11 Using coderay 1.1.1 Using debug_inspector 0.0.2 Using uniform_notifier 1.9.0 Using bundler 1.14.6 Using byebug 8.2.4 Using capistrano-harrow 0.5.3 Using ffi 1.9.10 Using cliver 0.3.2 Using docile 1.1.5 Using simplecov-html 0.10.0 Using coffee-script-source 1.10.0 Using execjs 2.6.0 Using thor 0.19.1 Using concurrent-ruby 1.0.1 Using deep_merge 1.0.1 Using safe_yaml 1.0.4 Using database_cleaner 1.5.3 Using orm_adapter 0.5.0 Using diff-lcs 1.2.5 Using enum_help 0.0.15 Using excon 0.49.0 Using formatador 0.2.5 Using multi_json 1.11.3 Using ipaddress 0.8.3 Using xml-simple 1.1.5 Using inflecto 0.0.2 Using trollop 2.1.2 Using tilt 2.0.2 Using sexp_processor 4.7.0 Using hashdiff 0.3.0 Using hirb 0.7.3 Using unicode-display_width 0.1.1 Using kgio 2.10.0 Using rb-fsevent 0.9.7 Using method_source 0.8.2 Using mini_magick 4.5.1 Using mysql2 0.4.4 Using newrelic_rpm 3.15.0.314 Installing oj 2.14.6 with native extensions Using websocket-extensions 0.1.2 Using powerpack 0.1.1 Using slop 3.6.0 Using rails-db-resetup 0.0.2 Using rainbow 2.1.0 Using raindrops 0.16.0 Using rspec-support 3.4.1 Using ruby-progressbar 1.8.0 Using rubyzip 1.2.0 Using sass 3.4.22 Using websocket 1.2.3 Using spring 1.7.1 Using timecop 0.8.1 Using vcr 3.0.1 Using fission 0.5.0 Using faker 1.6.3 Using validates_email_format_of 1.6.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/reza/.rvm/rubies/ruby-2.4.0/bin/ruby -r ./siteconf20170322-6809-16w775l.rb extconf.rb creating Makefile
current directory: /home/reza/.rvm/gems/ruby-2.4.0/gems/json-1.8.3/ext/json/ext/generator make "DESTDIR=" clean
current directory: /home/reza/.rvm/gems/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) } else if (klass == rb_cFixnum) { ^
~~~~~ 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) } 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 1make failed, exit code 2
Gem files will remain installed in /home/reza/.rvm/gems/ruby-2.4.0/gems/json-1.8.3 for inspection. Results logged to /home/reza/.rvm/gems/ruby-2.4.0/extensions/x86_64-linux/2.4.0/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. ➜ portfolio git:(master) ✗ `