0
我想安装gem capybara-webkit
但是当我运行bundle install
,我收到以下错误水豚,WebKit的:无法安装,即使QT安装
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/dineshp/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160814-4696-3d7ixk.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=/home/dineshp/.rvm/rubies/ruby-2.2.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 /home/dineshp/.rvm/gems/[email protected]/gems/capybara-webkit-1.11.1 for inspection.
Results logged to /home/dineshp/.rvm/gems/[email protected]/extensions/x86_64-linux/2.2.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.
由于上述错误显示:命令“QMAKE”不可用,我尝试使用以下命令指this后安装qt
:
sudo apt-get install libqt4-dev libqtwebkit-dev
当我键入qmake --version
,我得到的followi NG消息:
The program 'qmake' is currently not installed. You can install it by typing:
sudo apt-get install qtchooser
正如我知道我已经安装了QT,我试图运行qtchooser -list-versions
,我得到QT版本的下面的列表在我的系统:
4
5
default
qt4-i386-linux-gnu
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
为什么我不能够访问qmake
来自Ubuntu 14.04终端的命令?
感谢您的回应:)...我做了'export QT_SELECT = qt5',然后检查了'qtchooser -print-env',得到的结果如下:'QT_SELECT =“qt5” QTTOOLDIR =“/ usr/lib/x86_64-linux-gnu/qt5/bin“ QTLIBDIR =”/ usr/lib/x86_64-linux-gnu“ - 然后我再次尝试了'qmake -v',但是我得到了''程序'qmake'目前没有安装。您可以通过键入以下内容来安装它: sudo apt-get install qtchooser' – dp7
@dkp我不认为这是如何工作的。如果'qt_chooser'与BSD上的'port --select'类似,那么你必须做'qt_chooser qt5'来产生符号链接。如果失败了,那么你需要手动调用正确的qmake,或者将它添加到'.bash_profile'中的路径中。 –