jeudi 10 novembre 2016

An error occurred while installing capybara-webkit (1.6.0), and Bundler cannot continue

Get this error when running bundle install.


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /Users/david/Code/app/vendor/bundle/ruby/2.3.0/gems/capybara-webkit-1.6.0 /usr/local/opt/ruby/bin/ruby -r ./siteconf20161110-13713-18epbxz.rb extconf.rb sh: qmake: command not found * 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 --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=/usr/local/Cellar/ruby/2.3.1_2/bin/$(RUBY_BASE_NAME) --with-gl-dir --without-gl-dir --with-gl-include --without-gl-include=${gl-dir}/include --with-gl-lib --without-gl-lib=${gl-dir}/lib --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib Command 'qmake LIBS\ +\=\ -L/usr/local/opt/libyaml/lib\ -L/usr/local/opt/openssl/lib\ -L/usr/local/opt/readline/lib' not available

extconf failed, exit code 1

Gem files will remain installed in /Users/david/Code/app/vendor/bundle/ruby/2.3.0/gems/capybara-webkit-1.6.0 for inspection. Results logged to /Users/david/Code/app/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-16/2.3.0/capybara-webkit-1.6.0/gem_make.out

An error occurred while installing capybara-webkit (1.6.0), and Bundler cannot continue. Make sure that gem install capybara-webkit -v '1.6.0' succeeds before bundling.


If I run the command: gem install capybara-webkit -v '1.6.0' I get the following error


Building native extensions. This could take a while... ERROR: Error installing capybara-webkit: ERROR: Failed to build gem native extension.

current directory: /usr/local/lib/ruby/gems/2.3.0/gems/capybara-webkit-1.6.0

/usr/local/opt/ruby/bin/ruby -r ./siteconf20161110-14012-x2x888.rb extconf.rb sh: qmake: command not found * 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 --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=/usr/local/Cellar/ruby/2.3.1_2/bin/$(RUBY_BASE_NAME) --with-gl-dir --without-gl-dir --with-gl-include --without-gl-include=${gl-dir}/include --with-gl-lib --without-gl-lib=${gl-dir}/lib --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib Command 'qmake LIBS\ +\=\ -L/usr/local/opt/libyaml/lib\ -L/usr/local/opt/openssl/lib\ -L/usr/local/opt/readline/lib' not available

extconf failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.3.0/gems/capybara-webkit-1.6.0 for inspection. Results logged to /usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-16/2.3.0/capybara-webkit-1.6.0/gem_make.out


Any ideas? Thanks very much

Aucun commentaire:

Enregistrer un commentaire