当我bundle install
时,我得到了:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
Command 'qmake -spec linux-g++ ' not available
Makefile not found
Gem files will remain installed in /tmp/bundler20141128-11764-1rcu7gh/capybara-w
ebkit-1.3.0/gems/capybara-webkit-1.3.0 for inspection.
Results logged to /tmp/bundler20141128-11764-1rcu7gh/capybara-webkit-1.3.0/exten
sions/x86-linux/2.1.0/capybara-webkit-1.3.0/gem_make.out
An error occurred while installing capybara-webkit (1.3.0), and Bundler cannot
continue.
Make sure that `gem install capybara-webkit -v '1.3.0'` succeeds before
bundling.
有什么想法吗?
答案 0 :(得分:0)
这可能有点晚了,但我遇到了一个类似的问题,在我的本地开发机器上运行Debian运行旧版Rails应用程序。事实证明,它不仅需要安装qmake和qt-default软件包,而且还特别需要qt4-qmake和qt4-default; qt5-qmake和qt5-default不能完成这项工作。也许OP的问题围绕着缺乏qmake以及相关发行版中存在的任何相当于Debian的qt-default软件包,或者为qmake和qt-default选择了错误的Qt版本。