3
Installing capybara-webkit 1.11.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/rvm/gems/ruby-2.3.1/gems/capybara-webkit-1.11.1
/usr/local/rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20160607-31306-ngtugv.rb extconf.rb
*** 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/local/rvm/rubies/ruby-2.3.1/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 ' not available
extconf failed, exit code 1
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.3.1/gems/capybara-webkit-1.11.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.3.1/extensions/x86_64-linux/2.3.0/capybara-webkit-1.11.1/gem_make.out
你安裝了QT嗎? 「capybara-webkit依賴於跨平臺開發工具包Qt的WebKit實現,您需要下載Qt庫來構建和安裝gem,您可以在capybara上找到下載和安裝QT的說明, webkit wiki。capybara-webkit需要Qt 4.8或更高版本。「 –
請根據您使用的操作系統進行推薦,https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit – Bijendra