Capybara Webkit无法构建gem原生扩展。 OSX

时间:2014-12-31 02:22:51

标签: macos qt homebrew zsh capybara-webkit

capybara-webkit gem无法在我的机器上构建其原生扩展

OSX Yosemite 10.10.1

g++: error: unrecognized command line option '-Xarch_x86_64'
make[1]: *** [build/webkit_server.gch/c++] Error 1
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
Command 'make' failed

$ which qmake
 /usr/local/bin/qmake

$ qmake -v
QMake version 2.01a
 Using Qt version 4.8.6 in /usr/local/Cellar/qt/4.8.6/lib



 $ brew -v
 Homebrew 0.9.5


 $ ruby -v
 ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]

zshell路径:

 export PATH="/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/X11/bin"

是否还有其他信息有助于诊断此问题?

1 个答案:

答案 0 :(得分:0)

我能够通过升级gcc

来实现这一点
brew upgrade gcc