# Pastebin mGnskuy8 $ bundle 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 12.0.0 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.10.1 Using thread_safe 0.3.5 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile2 2.1.0 Using rack 1.6.5 Using mime-types-data 3.2016.0521 Using arel 6.0.3 Using public_suffix 2.0.4 Using execjs 2.7.0 Using debug_inspector 0.0.2 Using sass 3.4.22 Using bundler 1.13.6 Using byebug 9.0.6 Using coderay 1.1.1 Using coffee-script-source 1.11.1 Using thor 0.19.4 Using concurrent-ruby 1.0.2 Using damerau-levenshtein 1.2.0 Using tilt 2.0.5 Using sexp_processor 4.7.0 Using multi_json 1.12.1 Using kgio 2.10.0 Using method_source 0.8.2 Using slop 3.6.0 Using rails-assets-tether 1.1.1 Using raindrops 0.17.0 Using rdoc 4.3.0 Using turbolinks-source 5.0.0 Using unicode_utils 1.4.0 Using will_paginate 3.1.5 Using tzinfo 1.2.2 Using nokogiri 1.6.8.1 Using rack-test 0.6.3 Using mime-types 3.1 Using addressable 2.5.0 Using autoprefixer-rails 6.5.4 Using uglifier 3.0.4 Using binding_of_caller 0.7.2 Using coffee-script 2.4.1 Using sprockets 3.7.0 Using haml 4.0.7 Using ruby_parser 3.8.3 Using pry 0.10.4 Using unicorn 5.2.0 Using sdoc 0.4.2 Using turbolinks 5.0.1 Using activesupport 4.2.4 Using loofah 2.0.3 Using xpath 2.0.0 Using mail 2.6.4 Using bootstrap 4.0.0.alpha5 Using html2haml 2.0.0 Using rails-deprecated_sanitizer 1.0.3 Using globalid 0.3.7 Using activemodel 4.2.4 Using jbuilder 2.6.1 Using spring 2.0.0 Using rails-html-sanitizer 1.0.3 Using capybara 2.7.1 Using erb2haml 0.1.5 Using rails-dom-testing 1.0.7 Using activejob 4.2.4 Using activerecord 4.2.4 Installing capybara-webkit 1.11.1 with native extensions Using actionview 4.2.4 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb qmake: could not find a Qt installation of '' *** 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=/usr/bin/ruby2.1 --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 ' failed extconf failed, exit code 1 Gem files will remain installed in /home/fenhl/.local/share/gem/gems/capybara-webkit-1.11.1 for inspection. Results logged to /home/fenhl/.local/share/gem/extensions/x86_64-linux/2.1.0/capybara-webkit-1.11.1/gem_make.out An error occurred while installing capybara-webkit (1.11.1), and Bundler cannot continue. Make sure that `gem install capybara-webkit -v '1.11.1'` succeeds before bundling. $ sudo apt-get install qt5-default Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: qt5-default : Depends: qtbase5-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. $ sudo dpkg --get-selections | grep hold $