macos - 如何在Mac OS上正确安装Qt?
阿神
阿神 2017-04-21 11:15:31
0
1
759

安装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
阿神
阿神

闭关修行中......

membalas semua(1)
黄舟

Menemui cara:

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

Berpura-pura seperti ini:

brew install qt
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!