macos - 如何在Mac OS上正確安裝Qt?
阿神
阿神 2017-04-21 11:15:31
0
1
796

安裝ruby的gem -> capybara-webkit時,

gem install capybara-webkit -v '0.14.2'

出現如下錯誤:

Building native extensions.  This could take a while...
ERROR:  Error installing capybara-webkit:
    ERROR: Failed to build gem native extension.

    /Users/username/.rbenv/versions/2.0.0-p0/bin/ruby extconf.rb
Command 'qmake -spec macx-g++' not available


Gem files will remain installed in /Users/username/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-0.14.2 for inspection.
Results logged to /Users/username/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-0.14.2/./gem_make.out

Qt的安裝方法是在官網下載Mac版並安裝:

http://qt-project.org/downloads
阿神
阿神

闭关修行中......

全部回覆(1)
黄舟

找到方法了:

https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit

要這樣裝:

brew install qt
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板