ubuntu 18.04,rails 5.0,capybara-webkit 1.15.1
我在我的Ubuntu18.04桌面上克隆了一个rails应用程序。当我做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谷歌有很多窍门,但我都没有尝试过。我找到了一个提到安装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。
帮助?
发布于 2019-11-15 11:34:33
您可以通过apt安装qt-sdk。
sudo apt-get install qt-sdkhttps://askubuntu.com/questions/1187080
复制相似问题