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.
Related
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
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
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!
I'm trying to build capybara-webkit on XP. I follow this instruction. I says:
8) Clone latest version of capybara-webkit from Github:
$ git clone git://github.com/thoughtbot/capybara-webkit.git
9) Bundle/Install capybara-webkit version:
$ cd ruby193\capybara-webkit
$ bundle install
I did so at the first time. It installed some gems. Then I followed the instruction steps but couldn't build capybara-webkit. So to begin one more time, I deleted all the gems that were installed manually. Now I follow all the same steps but bundle install doesn't work any more. I says that all the gems are present:
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>cd capybara-webkit
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle install
Resolving dependencies...
Using rake (0.9.2)
Using addressable (2.3.2)
Using bundler (1.3.5)
Using appraisal (0.4.0)
Using mime-types (1.22)
Using nokogiri (1.5.9)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using xpath (2.0.0)
Using capybara (2.1.0)
Using json (1.8.0)
Using capybara-webkit (1.0.0) from source at .
Using ffi (1.2.0)
Using childprocess (0.3.6)
Using diff-lcs (1.1.2)
Using websocket (1.0.6)
Using libwebsocket (0.1.7.1)
Using subexec (0.0.4)
Using mini_magick (3.2.1)
Using multi_json (1.5.0)
Using rack-protection (1.3.2)
Using rspec-core (2.6.4)
Using rspec-expectations (2.6.0)
Using rspec-mocks (2.6.0)
Using rspec (2.6.0)
Using rubyzip (0.9.9)
Using selenium-webdriver (2.27.2)
Using tilt (1.3.3)
Using sinatra (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
But now I check these gems with bundle show but it says they all were deleted:
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle show sinatra
The gem sinatra has been deleted. It was installed at:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sinatra-1.3.5
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle show selenium-webdriver
The gem selenium-webdriver has been deleted. It was installed at:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle show mini_magick
The gem mini_magick has been deleted. It was installed at:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mini_magick-3.2.1
How it can be that bundle install says they are present but bundle show says they are deleted? So bundle install doesn't work any more. How may I again use bundle install to install these gems again?
This solved it for me: "gem install" and "bundle install" do not install gem dependencies after manual gem deletion. How to inform Rubygems that gems were deleted manually?
(Delete the .gemspec files for the gems you have removed).
Anyone else having trouble installing cuke4nuke via gem install cuke4nuke?
I'm getting the following error and can't figure out what to do to solve it:
Building native extensions. This could take a while...
ERROR: Error installing cuke4nuke:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
checking for strncpy_s()... no
creating Makefile
nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.
I'm running:
Windows 7 32-bit box
Ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
RubyGems 1.3.5
edit I also installed the RubyInstaller's devkit
I have the following gems installed:
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
builder (2.1.2)
cucumber (0.6.2, 0.5.0, 0.4.4)
diff-lcs (1.1.2)
fxri (0.3.6)
fxruby (1.6.16)
hpricot (0.6.164)
json (1.2.0)
json_pure (1.2.0)
log4r (1.0.5)
polyglot (0.2.9)
ptools (1.1.6)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7, 0.8.1)
ruby-opengl (0.60.0)
term-ansicolor (1.0.4)
test-unit (2.0.1)
treetop (1.4.3, 1.4.2)
win32-api (1.2.1, 1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
win32console (1.2.0)
windows-api (0.2.4)
windows-pr (0.9.3)
You didn't follow the installation instructions.
The installation instructions say to use the MinGW version of MRI, but you are using the MSVC version. Also, you have to install a C compiler and C build environment, again as per the installation instructions. If you use the MinGW version, you can use the Devkit provided by the RubyInstaller authors, if you use the MSVC version, you need to install the same compiler that was used to compile MRI: Microsoft Visual C 6.0 (which is no longer available and hasn't been for years).
I had the same problem with installing watir gem.....I copied all the files from ruby folder that is working fine on a different machine...onto my machine...and that solved the problem. I tried many ways...but this is the only way that worked for me. Hope it helps for somebody! :)