错误:

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 github 页面上有一个很好的 tutorial 展示了如何安装它。

关于ruby-on-rails - 使用 native 扩展安装 capybara-webkit 1.11.1 时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37670329/

10-13 07:19
查看更多