Установите капибару WebKit 1.15.1 на Ubuntu 18.04

ubuntu 18.04, rails 5.0, capybara-webkit 1.15.1

Я клонировал приложение для направляющих на свой рабочий стол Ubuntu 18.04. Когда я делаю bundle Я получаю ошибку:

An error occurred while installing capybara-webkit (1.15.1), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '1.15.1' --source 'https://rubygems.org/'` succeeds before bundling

Когда я выполняю предложенную команду, я получаю это:

gem install capybara-webkit -v '1.15.1' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR:  Error installing capybara-webkit:
    ERROR: Failed to build gem native extension.

    current directory: /home/jdc44/.rvm/gems/ruby-2.5.1/gems/capybara-webkit-1.15.1
/usr/share/rvm/rubies/ruby-2.5.1/bin/ruby -r ./siteconf20191107-19251-10hohh1.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/share/rvm/rubies/ruby-2.5.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

Google имеет много подсказок, но ни один из которого я попробовал работу. Я нашел сайт, который упомянул, что установил qt@5.5

brew install qt@5.5
...
Error: No available formula with the name "qt@5.5"

Изучение этого приводит меня к:

sudo apt-get install g++ qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libqt5webkit5-dev is already the newest version (5.212.0~alpha2-7ubuntu1).
g++ is already the newest version (4:7.4.0-1ubuntu2.3).
gstreamer1.0-plugins-base is already the newest version (1.14.5-0ubuntu1~18.04.1).
gstreamer1.0-tools is already the newest version (1.14.5-0ubuntu1~18.04.1).
gstreamer1.0-x is already the newest version (1.14.5-0ubuntu1~18.04.1).
qt5-default is already the newest version (5.9.5+dfsg-0ubuntu2.3).
The following packages were automatically installed and are no longer required:
  libllvm7 libpython-all-dev libpython-dev libpython2.7-dev python-all python-asn1crypto python-cffi-backend
  python-cryptography python-dbus python-enum34 python-gi python-idna python-ipaddress python-keyring
  python-keyrings.alt python-secretstorage python-six python-wheel python-xdg python2.7-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

Так, похоже, что я имею qt5 установленный, но я все еще не могу установить capybara-webkit 1.15.1

Помощь?

0
задан 7 November 2019 в 22:12

1 ответ

Можно установить qt-sdk через Кв.

sudo apt-get install qt-sdk
0
ответ дан 22 December 2019 в 00:03

Другие вопросы по тегам:

Похожие вопросы: