Why do my Review Apps keep failing to build on Heroku Pipelines? - ruby

I have a Heroku Pipeline set up. The Review Apps are based off the Staging App, so the Review Apps are using all the same environment variables etc. as the Staging App.
When the Review Apps try to spin up, I keep getting the follow log error. How come the Review App cannot build, but the Staging App (which is based off) can build no problem?
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.3
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching https://github.com/stripe/stripe-ruby
Fetching rake 11.2.2
Fetching StreetAddress 1.0.6
Fetching i18n 0.7.0
Installing StreetAddress 1.0.6
Installing i18n 0.7.0
Installing rake 11.2.2
Fetching json 1.8.3
Installing json 1.8.3 with native extensions
Fetching minitest 5.9.0
Installing minitest 5.9.0
Fetching thread_safe 0.3.5
Installing thread_safe 0.3.5
Fetching builder 3.2.2
Installing builder 3.2.2
Fetching erubis 2.7.0
Fetching mini_portile2 2.1.0
Installing erubis 2.7.0
Installing mini_portile2 2.1.0
Fetching pkg-config 1.1.7
Installing pkg-config 1.1.7
Fetching rack 1.6.4
Installing rack 1.6.4
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching arel 6.0.3
Installing arel 6.0.3
Fetching public_suffix 2.0.4
Fetching httpclient 2.8.2.3
Installing public_suffix 2.0.4
Installing httpclient 2.8.2.3
Fetching ansi 1.5.0
Installing ansi 1.5.0
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching jmespath 1.3.1
Installing jmespath 1.3.1
Fetching aws_cf_signer 0.1.3
Installing aws_cf_signer 0.1.3
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching rubyzip 1.0.0
Installing rubyzip 1.0.0
Fetching thor 0.19.1
Installing thor 0.19.1
Fetching sass 3.4.22
Installing sass 3.4.22
Fetching browser 2.5.1
Installing browser 2.5.1
Using bundler 1.15.2
Fetching unf_ext 0.0.7.2
Installing unf_ext 0.0.7.2 with native extensions
Fetching netrc 0.11.0
Installing netrc 0.11.0
Fetching coffee-script-source 1.10.0
Installing coffee-script-source 1.10.0
Fetching concurrent-ruby 1.0.2
Installing concurrent-ruby 1.0.2
Fetching dalli 2.7.6
Installing dalli 2.7.6
Fetching declarative 0.0.9
Fetching declarative-option 0.1.0
Installing declarative 0.0.9
Installing declarative-option 0.1.0
Fetching excon 0.61.0
Fetching multipart-post 2.0.0
Installing multipart-post 2.0.0
Installing excon 0.61.0
Fetching geocoder 1.5.0
Installing geocoder 1.5.0
Fetching multi_json 1.12.1
Installing multi_json 1.12.1
Fetching jwt 1.5.6
Fetching little-plugger 1.1.4
Installing jwt 1.5.6
Installing little-plugger 1.1.4
Fetching memoist 0.16.0
Installing memoist 0.16.0
Fetching os 0.9.6
Fetching hurley 0.2
Installing os 0.9.6
Installing hurley 0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching retriable 3.1.1
Installing retriable 3.1.1
Fetching moneta 0.8.1
Fetching http-form_data 1.0.3
Installing http-form_data 1.0.3
Installing moneta 0.8.1
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching nesty 1.0.2
Installing nesty 1.0.2
Fetching model_attribute 3.2.0
Installing model_attribute 3.2.0
Fetching multi_fetch_fragments 0.0.17
Installing multi_fetch_fragments 0.0.17
Fetching mustache 1.0.3
Installing mustache 1.0.3
Fetching net-http-persistent 2.9.4
Installing net-http-persistent 2.9.4
Fetching nickel 0.1.6
Installing nickel 0.1.6
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching phone 1.2.3
Installing phone 1.2.3
Fetching pusher-signature 0.1.8
Installing pusher-signature 0.1.8
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching remotipart 1.2.1
Installing remotipart 1.2.1
Fetching rumoji 0.5.0
Installing rumoji 0.5.0
Fetching tilt 2.0.5
Installing tilt 2.0.5
Fetching spellingbee 0.0.2
Installing spellingbee 0.0.2
Fetching turbolinks-source 5.0.0
Installing turbolinks-source 5.0.0
Fetching wicked_pdf 1.1.0
Installing wicked_pdf 1.1.0
Fetching wkhtmltopdf-heroku 2.12.4.0
Fetching tzinfo 1.2.2
Installing tzinfo 1.2.2
Fetching memoizable 0.4.2
Installing memoizable 0.4.2
Fetching nokogiri 1.6.8
Installing wkhtmltopdf-heroku 2.12.4.0
Installing nokogiri 1.6.8 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/ruby-2.5.3/bin/ruby -r
./siteconf20190219-234-1ecip0x.rb extconf.rb
creating Makefile
current directory:
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.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" [enabled by
default]
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
[enabled by default]
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/gems/json-1.8.3
for inspection.
Results logged to
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.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:
postmark-rails was resolved to 0.13.0, which depends on
actionmailer was resolved to 4.2.2, which depends on
actionpack was resolved to 4.2.2, which depends on
actionview was resolved to 4.2.2, which depends on
rails-dom-testing was resolved to 1.0.7, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.2, which depends on
json
Bundler Output: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching https://github.com/stripe/stripe-ruby
Fetching rake 11.2.2
Fetching StreetAddress 1.0.6
Fetching i18n 0.7.0
Installing StreetAddress 1.0.6
Installing i18n 0.7.0
Installing rake 11.2.2
Fetching json 1.8.3
Installing json 1.8.3 with native extensions
Fetching minitest 5.9.0
Installing minitest 5.9.0
Fetching thread_safe 0.3.5
Installing thread_safe 0.3.5
Fetching builder 3.2.2
Installing builder 3.2.2
Fetching erubis 2.7.0
Fetching mini_portile2 2.1.0
Installing erubis 2.7.0
Installing mini_portile2 2.1.0
Fetching pkg-config 1.1.7
Installing pkg-config 1.1.7
Fetching rack 1.6.4
Installing rack 1.6.4
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching arel 6.0.3
Installing arel 6.0.3
Fetching public_suffix 2.0.4
Fetching httpclient 2.8.2.3
Installing public_suffix 2.0.4
Installing httpclient 2.8.2.3
Fetching ansi 1.5.0
Installing ansi 1.5.0
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching jmespath 1.3.1
Installing jmespath 1.3.1
Fetching aws_cf_signer 0.1.3
Installing aws_cf_signer 0.1.3
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching rubyzip 1.0.0
Installing rubyzip 1.0.0
Fetching thor 0.19.1
Installing thor 0.19.1
Fetching sass 3.4.22
Installing sass 3.4.22
Fetching browser 2.5.1
Installing browser 2.5.1
Using bundler 1.15.2
Fetching unf_ext 0.0.7.2
Installing unf_ext 0.0.7.2 with native extensions
Fetching netrc 0.11.0
Installing netrc 0.11.0
Fetching coffee-script-source 1.10.0
Installing coffee-script-source 1.10.0
Fetching concurrent-ruby 1.0.2
Installing concurrent-ruby 1.0.2
Fetching dalli 2.7.6
Installing dalli 2.7.6
Fetching declarative 0.0.9
Fetching declarative-option 0.1.0
Installing declarative 0.0.9
Installing declarative-option 0.1.0
Fetching excon 0.61.0
Fetching multipart-post 2.0.0
Installing multipart-post 2.0.0
Installing excon 0.61.0
Fetching geocoder 1.5.0
Installing geocoder 1.5.0
Fetching multi_json 1.12.1
Installing multi_json 1.12.1
Fetching jwt 1.5.6
Fetching little-plugger 1.1.4
Installing jwt 1.5.6
Installing little-plugger 1.1.4
Fetching memoist 0.16.0
Installing memoist 0.16.0
Fetching os 0.9.6
Fetching hurley 0.2
Installing os 0.9.6
Installing hurley 0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching retriable 3.1.1
Installing retriable 3.1.1
Fetching moneta 0.8.1
Fetching http-form_data 1.0.3
Installing http-form_data 1.0.3
Installing moneta 0.8.1
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching nesty 1.0.2
Installing nesty 1.0.2
Fetching model_attribute 3.2.0
Installing model_attribute 3.2.0
Fetching multi_fetch_fragments 0.0.17
Installing multi_fetch_fragments 0.0.17
Fetching mustache 1.0.3
Installing mustache 1.0.3
Fetching net-http-persistent 2.9.4
Installing net-http-persistent 2.9.4
Fetching nickel 0.1.6
Installing nickel 0.1.6
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching phone 1.2.3
Installing phone 1.2.3
Fetching pusher-signature 0.1.8
Installing pusher-signature 0.1.8
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching remotipart 1.2.1
Installing remotipart 1.2.1
Fetching rumoji 0.5.0
Installing rumoji 0.5.0
Fetching tilt 2.0.5
Installing tilt 2.0.5
Fetching spellingbee 0.0.2
Installing spellingbee 0.0.2
Fetching turbolinks-source 5.0.0
Installing turbolinks-source 5.0.0
Fetching wicked_pdf 1.1.0
Installing wicked_pdf 1.1.0
Fetching wkhtmltopdf-heroku 2.12.4.0
Fetching tzinfo 1.2.2
Installing tzinfo 1.2.2
Fetching memoizable 0.4.2
Installing memoizable 0.4.2
Fetching nokogiri 1.6.8
Installing wkhtmltopdf-heroku 2.12.4.0
Installing nokogiri 1.6.8 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/ruby-2.5.3/bin/ruby -r
./siteconf20190219-234-1ecip0x.rb extconf.rb
creating Makefile
current directory:
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.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" [enabled by
default]
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
[enabled by default]
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/gems/json-1.8.3
for inspection.
Results logged to
/tmp/build_db9f24d052d7c3b0fc0a6d8f7a7bec58/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.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:
postmark-rails was resolved to 0.13.0, which depends on
actionmailer was resolved to 4.2.2, which depends on
actionpack was resolved to 4.2.2, which depends on
actionview was resolved to 4.2.2, which depends on
rails-dom-testing was resolved to 1.0.7, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.2, which depends on
json
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app.
! Push failed

Related

Error when running the command bundler install

I'm new to bundle and ruby and I've just installed bundle 2.2.17 and ruby 3.0.1. When I ran the command bundle install, I got the following error. After tracing back the error, I was still not able to understand the error and identify the reason for having this error. If someone could instruct me about how I can get started with solving this, that would be very helpful. Below is the output message I got after running the command:
Resolving dependencies....
Using concurrent-ruby 1.1.8
Using minitest 5.14.4
Using thread_safe 0.3.6
Using zeitwerk 2.4.2
Using public_suffix 4.0.6
Using bundler 2.2.17
Using colorator 1.1.0
Using coffee-script-source 1.11.1
Using execjs 2.8.1
Following files may not be writable, so sudo is needed:
/Library/Ruby/Gems/2.6.0
/Library/Ruby/Gems/2.6.0/build_info
/Library/Ruby/Gems/2.6.0/cache
/Library/Ruby/Gems/2.6.0/doc
/Library/Ruby/Gems/2.6.0/extensions
/Library/Ruby/Gems/2.6.0/gems
/Library/Ruby/Gems/2.6.0/specifications
Using faraday-excon 1.1.0
Using faraday-net_http 1.0.1
Using multipart-post 2.1.1
Using forwardable-extended 2.6.0
Using gemoji 3.0.1
Using rb-fsevent 0.11.0
Using rexml 3.2.5
Using mercenary 0.3.6
Using rouge 3.26.0
Using safe_yaml 1.0.5
Fetching http_parser.rb 0.6.0
Fetching eventmachine 1.2.7
Using liquid 4.0.3
Using jekyll-paginate 1.1.0
Using rubyzip 2.3.0
Using jekyll-swiss 1.0.0
Using unicode-display_width 1.7.0
Using tzinfo 1.2.9
Using i18n 0.9.5
Using addressable 2.7.0
Using pathutil 0.16.2
Using coffee-script 2.4.1
Using kramdown 2.3.1
Using terminal-table 1.8.0
Using activesupport 6.0.3.7
Using ruby-enum 0.9.0
Using jekyll-coffeescript 1.1.1
Using kramdown-parser-gfm 1.1.0
Fetching ffi 1.15.0
Fetching unf_ext 0.0.7.7
Fetching racc 1.5.2
Using faraday-net_http_persistent 1.1.0
Using ruby2_keywords 0.0.4
Fetching commonmarker 0.17.13
Using faraday 1.4.1
Using sawyer 0.8.2
Using octokit 4.21.0
Using jekyll-gist 1.5.0
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle config set --local path 'vendor/bundle'
bundle install
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Installing http_parser.rb 0.6.0 with native extensions
Installing eventmachine 1.2.7 with native extensions
Installing commonmarker 0.17.13 with native extensions
Installing racc 1.5.2 with native extensions
Installing unf_ext 0.0.7.7 with native extensions
Installing ffi 1.15.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/private/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-8wnof7commonmarker-0.17.13/gems/commonmarker-0.17.13/ext/commonmarker
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
./siteconf20210520-20868-8zcp2h.rb extconf.rb
creating Makefile
current directory:
/private/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-8wnof7commonmarker-0.17.13/gems/commonmarker-0.17.13/ext/commonmarker
make "DESTDIR=" clean
current directory:
/private/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-8wnof7commonmarker-0.17.13/gems/commonmarker-0.17.13/ext/commonmarker
make "DESTDIR="
make: *** No rule to make target
`/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin19/ruby/config.h',
needed by `arena.o'. Stop.
make failed, exit code 2
Gem files will remain installed in
/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-8wnof7commonmarker-0.17.13/gems/commonmarker-0.17.13
for inspection.
Results logged to
/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-8wnof7commonmarker-0.17.13/extensions/universal-darwin-19/2.6.0/commonmarker-0.17.13/gem_make.out
An error occurred while installing commonmarker (0.17.13), and Bundler cannot
continue.
Make sure that `gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
github-pages was resolved to 214, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.6, which depends on
jekyll-commonmark was resolved to 1.3.1, which depends on
commonmarker
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/private/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-vi8pkcunf_ext-0.0.7.7/gems/unf_ext-0.0.7.7/ext/unf_ext
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
./siteconf20210520-20868-i4vcac.rb extconf.rb
checking for -lstdc++... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++lib
--without-stdc++lib
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in
`try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:546:in
`block in try_link0'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tmpdir.rb:93:in
`mktmpdir'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:543:in
`try_link0'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:570:in
`try_link'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:789:in
`try_func'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1016:in
`block in have_library'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:959:in
`block in checking_for'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in
`block (2 levels) in postpone'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in
`open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in
`block in postpone'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in
`open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:357:in
`postpone'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:958:in
`checking_for'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1011:in
`have_library'
from extconf.rb:6:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-vi8pkcunf_ext-0.0.7.7/extensions/universal-darwin-19/2.6.0/unf_ext-0.0.7.7/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-vi8pkcunf_ext-0.0.7.7/gems/unf_ext-0.0.7.7
for inspection.
Results logged to
/var/folders/v5/f0xx2vq95039ds03fshsy_980000gn/T/bundler20210520-20868-vi8pkcunf_ext-0.0.7.7/extensions/universal-darwin-19/2.6.0/unf_ext-0.0.7.7/gem_make.out
An error occurred while installing unf_ext (0.0.7.7), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.7' --source 'https://rubygems.org/'` succeeds
before bundling.
In Gemfile:
github-pages was resolved to 214, which depends on
github-pages-health-check was resolved to 1.17.0, which depends on
dnsruby was resolved to 1.61.5, which depends on
simpleidn was resolved to 0.2.1, which depends on
unf was resolved to 0.1.4, which depends on
unf_ext
This error might be related to:
Rails: Your user account isn't allowed to install to the system RubyGems
after that try to execute
gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/'`
succeeds before bundling.
to check if this gem will be installed.
This is likely a duplicate of: Problem with bundler using rails (mac user)
You need to install updated xcode. Go to your terminal and run: xcode-select --install

Ruby bundler: An error occurred while installing json (1.8.1)

I have upgraded my ruby version to ruby ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin19]
When I run bundle to update my gems, I get next error that I have no idea what to do with:
bundle
Fetching gem metadata from http://rubygems.org/..............
Fetching https://github.com/stripe/stripe-ruby
Fetching rake 10.1.0
Installing rake 10.1.0
Fetching i18n 0.6.5
Installing i18n 0.6.5
Fetching minitest 4.7.5
Installing minitest 4.7.5
Fetching multi_json 1.14.1
Installing multi_json 1.14.1
Fetching atomic 1.1.14
Installing atomic 1.1.14 with native extensions
Fetching thread_safe 0.1.3
Installing thread_safe 0.1.3
Fetching tzinfo 0.3.37
Installing tzinfo 0.3.37
Fetching activesupport 4.0.0
Installing activesupport 4.0.0
Fetching builder 3.1.4
Installing builder 3.1.4
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching rack 1.5.2
Installing rack 1.5.2
Fetching rack-test 0.6.2
Installing rack-test 0.6.2
Fetching actionpack 4.0.0
Installing actionpack 4.0.0
Fetching mime-types 1.25
Installing mime-types 1.25
Fetching polyglot 0.3.3
Installing polyglot 0.3.3
Fetching treetop 1.4.15
Installing treetop 1.4.15
Fetching mail 2.5.4
Installing mail 2.5.4
Fetching actionmailer 4.0.0
Installing actionmailer 4.0.0
Fetching activemodel 4.0.0
Installing activemodel 4.0.0
Fetching activerecord-deprecated_finders 1.0.3
Installing activerecord-deprecated_finders 1.0.3
Fetching arel 4.0.0
Installing arel 4.0.0
Fetching activerecord 4.0.0
Installing activerecord 4.0.0
Fetching addressable 2.3.6
Installing addressable 2.3.6
Fetching gyoku 1.3.1
Installing gyoku 1.3.1
Fetching mini_portile 0.5.3
Installing mini_portile 0.5.3
Fetching nokogiri 1.6.1
Installing nokogiri 1.6.1 with native extensions
Fetching akami 1.3.1
Installing akami 1.3.1
Using bundler 1.17.3
Fetching chronic 0.10.2
Installing chronic 0.10.2
Fetching coffee-script-source 1.6.3
Installing coffee-script-source 1.6.3
Fetching execjs 2.0.1
Installing execjs 2.0.1
Fetching coffee-script 2.2.0
Installing coffee-script 2.2.0
Fetching thor 0.18.1
Installing thor 0.18.1
Fetching railties 4.0.0
Installing railties 4.0.0
Fetching coffee-rails 4.0.0
Installing coffee-rails 4.0.0
Fetching css_parser 1.3.5
Installing css_parser 1.3.5
Fetching hike 1.2.3
Installing hike 1.2.3
Fetching htmlentities 4.3.2
Installing htmlentities 4.3.2
Fetching httpi 2.4.1
Installing httpi 2.4.1
Fetching jbuilder 1.5.1
Installing jbuilder 1.5.1
Fetching jquery-rails 3.0.4
Installing jquery-rails 3.0.4
Fetching json 1.8.1
Installing json 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/Rober/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/gems/json-1.8.1/ext/json/ext/generator
/Users/Rober/.rvm/rubies/ruby-2.4.2/bin/ruby -I /Users/Rober/.rvm/rubies/ruby-2.4.2/lib/ruby/site_ruby/2.4.0 -r ./siteconf20191125-59844-rge3ax.rb extconf.rb
creating Makefile
current directory: /Users/Rober/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /Users/Rober/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/gems/json-1.8.1/ext/json/ext/generator
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/Rober/.rvm/rubies/ruby-2.4.2/include/ruby-2.4.0/ruby/intern.h:795:9: note: macro 'rb_str_new' defined here
#define rb_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
^
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)' (aka 'unsigned long (const char *, long)') [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^ ~~~~~~~~~~
generator.c:840:25: error: use of undeclared identifier 'rb_cFixnum'
} else if (klass == rb_cFixnum) {
^
generator.c:842:25: error: use of undeclared identifier 'rb_cBignum'
} else if (klass == rb_cBignum) {
^
1 warning and 3 errors generated.
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/Rober/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/gems/json-1.8.1 for inspection.
Results logged to /Users/Rober/.rvm/rubies/ruby-2.4.2/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-19/2.4.0/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' --source 'http://rubygems.org/'` succeeds before bundling.
In Gemfile:
sdoc was resolved to 0.3.20, which depends on
rdoc was resolved to 3.12.2, which depends on
json

Jekyll Cannot Be Deployed on Manjaro Linux - Sass-Listen-4.0.0 Cannot Be Installed On Deployment (GitLab, Netlify)

I cannot get my website to work on either GitLab Pages or Netlify. Trying to use either service to upload my Jekyll Website and host it returns an error about sass-listen not being able to be installed on either platform. Shown below is the version of the application I am using to make the Jekyll website and deploy from.
> ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
> bundle -v
Bundler Version 1.16.2
> lsb_release -a
LSB Version: n/a
Distributor ID: ManjaroLinux
Description: Manjaro Linux
Release: 17.1.10
Codename: Hakoila
> bundle update
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using public_suffix 3.0.2
Using addressable 2.5.2
Using bundler 1.16.2
Using colorator 1.1.0
Using concurrent-ruby 1.0.5
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using ffi 1.9.25
Using forwardable-extended 2.6.0
Using i18n 0.9.5
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.6
Using jekyll-sass-converter 1.5.2
Using rb-fsevent 0.10.3
Using ruby_dep 1.5.0
Using listen 3.1.5
Using jekyll-watch 2.0.0
Using kramdown 1.17.0
Using liquid 4.0.0
Using mercenary 0.3.6
Using pathutil 0.16.1
Using rouge 3.1.1
Using safe_yaml 1.0.4
Using jekyll 3.8.3
Using jekyll-menus 0.6.0
Bundle updated!
> bundle install
Using public_suffix 3.0.2
Using addressable 2.5.2
Using bundler 1.16.2
Using colorator 1.1.0
Using concurrent-ruby 1.0.5
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using ffi 1.9.25
Using forwardable-extended 2.6.0
Using i18n 0.9.5
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.6
Using jekyll-sass-converter 1.5.2
Using rb-fsevent 0.10.3
Using ruby_dep 1.5.0
Using listen 3.1.5
Using jekyll-watch 2.0.0
Using kramdown 1.17.0
Using liquid 4.0.0
Using mercenary 0.3.6
Using pathutil 0.16.1
Using rouge 3.1.1
Using safe_yaml 1.0.4
Using jekyll 3.8.3
Using jekyll-menus 0.6.0
Bundle complete! 3 Gemfile dependencies, 27 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
> cat ./Gemfile
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.3"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-menus"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?
> cat ./Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.0.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.9.25)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-menus (0.6.0)
jekyll (~> 3.1)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.0.0)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (3.0.2)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (3.1.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.5.6)
sass-listen (>= 4.0.0)
sass-listen (4.0.0)
rb-inotify (>= 0.9.7, >= 0.9)
PLATFORMS
ruby
DEPENDENCIES
jekyll (~> 3.8.3)
jekyll-menus
tzinfo-data
BUNDLED WITH
1.16.2
When I try to deploy to either GitLab or Netlify, here is the exact error I get. I have tried switching Ruby Versions, Pushing without the Ruby GemLock file, Making an entirely new Jekyll Site and running "bundle install" on it, Removing and Adding Plugins, and running "bundle install --full-index" All of the following return the same error on both deployment platforms.
On Netlify:
6:13:50 PM: Build ready to start
6:13:51 PM: Fetching cached dependencies
6:13:52 PM: Failed to fetch cache, continuing with build
6:13:52 PM: Starting to prepare the repo for build
6:13:52 PM: No cached dependencies found. Cloning fresh repo
6:13:52 PM: git clone git#gitlab.com:ReasonablySelenium/netlify-debugging-project
6:13:54 PM: Preparing Git Reference refs/heads/master
6:13:55 PM: Starting build script
6:13:55 PM: Installing dependencies
6:13:56 PM: Downloading and installing node v8.11.3...
6:13:56 PM: Downloading https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz...
6:13:56 PM:
#
6:13:56 PM: 1.8%
6:13:57 PM:
##################
6:13:57 PM: 25.4%
6:13:57 PM:
############################################ 61.6%
6:13:57 PM:
################################
6:13:57 PM: ######################################## 100.0%
6:13:57 PM: Computing checksum with sha256sum
6:13:57 PM: Checksums matched!
6:13:59 PM: Now using node v8.11.3 (npm v5.6.0)
6:14:00 PM: Attempting ruby version 2.3.6, read from environment
6:14:01 PM: Using ruby version 2.3.6
6:14:02 PM: Using PHP version 5.6
6:14:02 PM: Started restoring cached ruby gems
6:14:02 PM: Finished restoring cached ruby gems
6:14:02 PM: Installing gem bundle
6:14:03 PM: Fetching gem metadata from https://rubygems.org/
6:14:03 PM: .
6:14:03 PM: .
6:14:03 PM: .
6:14:03 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:05 PM: Fetching public_suffix 3.0.2
6:14:05 PM: Installing public_suffix 3.0.2
6:14:05 PM: Fetching addressable 2.5.2
6:14:05 PM: Installing addressable 2.5.2
6:14:05 PM: Using bundler 1.16.2
6:14:05 PM: Fetching colorator 1.1.0
6:14:05 PM: Installing colorator 1.1.0
6:14:05 PM: Fetching concurrent-ruby 1.0.5
6:14:05 PM: Installing concurrent-ruby 1.0.5
6:14:06 PM: Fetching eventmachine 1.2.7
6:14:06 PM: Installing eventmachine 1.2.7 with native extensions
6:14:23 PM: Fetching http_parser.rb 0.6.0
6:14:23 PM: Installing http_parser.rb 0.6.0 with native extensions
6:14:24 PM: Fetching em-websocket 0.5.1
6:14:25 PM: Installing em-websocket 0.5.1
6:14:25 PM: Fetching ffi 1.9.25
6:14:25 PM: Installing ffi 1.9.25 with native extensions
6:14:34 PM: Fetching forwardable-extended 2.6.0
6:14:35 PM: Installing forwardable-extended 2.6.0
6:14:35 PM: Fetching i18n 0.9.5
6:14:35 PM: Installing i18n 0.9.5
6:14:35 PM: Fetching rb-inotify 0.9.10
6:14:35 PM: Installing rb-inotify 0.9.10
6:14:35 PM: Fetching sass-listen 4.0.0
6:14:35 PM: Downloading sass-listen-4.0.0 revealed dependencies not in the API or the
6:14:35 PM: lockfile (rb-fsevent (>= 0.9.4, ~> 0.9), rb-inotify (>= 0.9.7, ~> 0.9)).
6:14:35 PM: Either installing with `--full-index` or running `bundle update sass-listen`
6:14:35 PM: should fix the problem.
6:14:35 PM: In Gemfile:
6:14:35 PM: minima was resolved to 2.5.0, which depends on
6:14:35 PM: jekyll-feed was resolved to 0.10.0, which depends on
6:14:35 PM: jekyll was resolved to 3.8.3, which depends on
6:14:35 PM: jekyll-sass-converter was resolved to 1.5.2, which depends on
6:14:35 PM: sass was resolved to 3.5.6, which depends on
6:14:35 PM: sass-listen
6:14:35 PM: Error during gem install
6:14:35 PM: Error running command: Build script returned non-zero exit code: 1
6:14:35 PM: Failing build: Failed to build site
6:14:35 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
6:14:35 PM: Finished processing build request in 44.176883866s
On GitLab:
Running with gitlab-runner 11.0.0-rc1 (6dcccded)
on docker-auto-scale ed2dce3a
Using Docker executor with image ruby:2.3 ...
Pulling docker image ruby:2.3 ...
Using docker image sha256:da0014e956b4cd42c7a08393a84f937a8d9c8a90de2e765ad04e73ab37abb945 for ruby:2.3 ...
Running on runner-ed2dce3a-project-7166488-concurrent-0 via runner-ed2dce3a-srm-1529693929-b4ef16ac...
Cloning repository...
Cloning into '/builds/ReasonablySelenium/rozlan-society.gitlab.io'...
Checking out 53ea4d7e as master...
Skipping Git submodules setup
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching public_suffix 3.0.2
Installing public_suffix 3.0.2
Fetching addressable 2.5.2
Installing addressable 2.5.2
Using bundler 1.16.2
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-websocket 0.5.1
Installing em-websocket 0.5.1
Fetching ffi 1.9.25
Installing ffi 1.9.25 with native extensions
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching sass-listen 4.0.0
Downloading sass-listen-4.0.0 revealed dependencies not in the API or the
lockfile (rb-fsevent (>= 0.9.4, ~> 0.9), rb-inotify (>= 0.9.7, ~> 0.9)).
Either installing with `--full-index` or running `bundle update sass-listen`
should fix the problem.
In Gemfile:
jekyll-menus was resolved to 0.6.0, which depends on
jekyll was resolved to 3.8.3, which depends on
jekyll-sass-converter was resolved to 1.5.2, which depends on
sass was resolved to 3.5.6, which depends on
sass-listen
ERROR: Job failed: exit code 1
I am not sure what I am supposed to do at this point. Can somebody please out me out?
EDIT:
I tried using updated libraries today and it didn't work. I have since moved on from Jekyll for some time now, so I don't want to bother fixing the problem and move on to something else if I have to. Thanks everyone for your help.
This solved the problem for me:
rm Gemfile.lock
Install without using system as vendor: bundle install --path=vendor
Source: https://bugs.archlinux.org/task/59429

Push to heroku fails: revealed dependencies not in the API or the lockfile

I can't push to heroku.
The bundler has found unmet dependencies of nokogiri 1.6.8.1.
$ git push heroku master
....
remote: The latest bundler is 1.15.4, but you are currently running 1.15.2.
remote: To update, run `gem install bundler`
remote: Downloading nokogiri-1.6.8.1 revealed dependencies not in the API or the
remote: lockfile (mini_portile2 (~> 2.1.0)).
remote: Either installing with `--full-index` or running `bundle update nokogiri` should
remote: fix the problem.
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to digitreco.
I am on the Heroku -16 stack. I tried downgrading nokogiri to 1.5.9 in the Gemfile but it resolves to 1.6.0 due to other dependencies.
Any help is appreciated.
I have a solution for the second problem (the nokogiri & mini_portile2 file mismatch).
gem install nokogiri # step 1
bundle install # step 2
bundle update # step 3
bundle install # step 4
bundle install # step 5
bundle update # step 6
git commit -a -m "Fix nokogiri and mini_portile2 problem" # step 7
git push # step 8
git push heroku master # step 9
Steps 2 through 6 are repetitiously redundant, but I am just retracing my steps via my bash history.
I do not have a solution for your first problem, but once I solved the second problem, the first problem was just a warning.
I hope this works for you.
-Ben
Actually the Benjamin solution worked for me. But just running:
$ gem install nokogiri
Fetching: mini_portile2-2.3.0.gem (100%)
Successfully installed mini_portile2-2.3.0
Fetching: nokogiri-1.8.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.8.2
2 gems installed
$ bundle update
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.....
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.0.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.0
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.2
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.0
Using rack 2.0.4
Using rack-test 1.0.0
Using actionpack 5.2.0
Using nio4r 2.3.0
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.0
Using globalid 0.4.1
Using activejob 5.2.0
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 5.2.0
Using activemodel 5.2.0
Using arel 9.0.0
Using activerecord 5.2.0
Using mimemagic 0.3.2
Using marcel 0.3.2
Using activestorage 5.2.0
Using public_suffix 3.0.2
Using addressable 2.5.2
Using io-like 0.3.0
Using archive-zip 0.11.0
Using execjs 2.7.0
Using autoprefixer-rails 8.2.0
Using bcrypt 3.1.11
Using bindex 0.5.0
Using msgpack 1.2.4
Using bootsnap 1.3.0
Using popper_js 1.12.9
Using rb-fsevent 0.10.3
Using ffi 1.9.23
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.6
Using bootstrap 4.0.0
Using bundler 1.16.1
Using byebug 10.0.2
Using xpath 3.0.0
Using capybara 3.0.1
Using childprocess 0.9.0
Using chromedriver-helper 1.2.0
Using coffee-script-source 1.12.2
Using coffee-script 2.4.1
Using method_source 0.9.0
Using thor 0.20.0
Using railties 5.2.0
Using coffee-rails 4.2.2
Using temple 0.8.0
Using tilt 2.0.8
Using haml 5.0.4
Using multi_json 1.13.1
Using jbuilder 2.7.0
Using jquery-rails 4.3.1
Using listen 3.1.5
Using pg 1.0.0
Using puma 3.11.3
Using sprockets 3.7.1
Using sprockets-rails 3.2.1
Using rails 5.2.0
Using rubyzip 1.2.1
Using sass-rails 5.0.7
Using selenium-webdriver 3.11.0
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using turbolinks-source 5.1.0
Using turbolinks 5.1.1
Using uglifier 4.1.9
Using web-console 3.6.0
Bundle updated!
after running those commands it changed my Gemfile.lock:
diff --git a/Gemfile.lock b/Gemfile.lock
index 49818a3..0ad5e64 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
## -110,11 +110,13 ## GEM
method_source (0.9.0)
mimemagic (0.3.2)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
pg (1.0.0)
popper_js (1.12.9)
public_suffix (3.0.2)
With Color, for easier reading
1)run $sudo apt-get install libsqlite3-dev
if it responds: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. then run $sudo dpkg --configure -a
2)run $rails s if it responds: Downloading nokogiri-1.10.0 revealed dependencies not in the API or the lockfile (mini_portile2 (~> 2.4.0)). Either installing with --full-index or running bundle update nokogiri should fix the problem.
3)run $ bundle update nokogiri and all will be perfect again!
4) start server again and voila!

Ruby version 2.3.1 the bundle install shows error

C:\Sites\addfee>rails s
Could not find gem 'rails (= 4.2.5.1) x64-mingw32' in any of the gem sources in your Gemfile or available on this machine.
Run bundle install to install missing gems.
then I did this
C:\Sites\addfee>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 i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 1.6.4
Using mime-types-data 3.2016.0521
Using arel 6.0.3
Installing debug_inspector 0.0.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby23-x64/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby23-x64/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/debug_inspector-0.0.2 for inspection.
Results logged to C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debug_inspector-0.0.2/gem_make.out
Using bundler 1.12.5
Installing byebug 9.0.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby23-x64/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby23-x64/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby23-lib/ruby/gems/2.3.0/gems/byebug-9.0.5 for inspection.
Results logged to C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/byebug-9.0.5/gem_make.out
Using coffee-script-source 1.10.0
Using execjs 2.7.0
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Using multi_json 1.12.1
Using sass 3.4.22
Using tilt 2.0.5
Using sqlite3 1.3.11
Using turbolinks-source 5.0.0
Using rdoc 4.2.2
Using tzinfo 1.2.2
Using nokogiri 1.6.8
Using rack-test 0.6.3
Using mime-types 3.1
An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue.
Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before bundling.

Resources