I had similar issue with capybara-webkit. I tried all the steps mentioned in the wiki https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit , but that did not help me.
Then i looked at this issue https://github.com/thoughtbot/capybara-webkit/issues/583 .
My brew doctor
was complaining that my xcode version is old. I should update it. Also, I should take software updates for command line tools
. Once i updated both, the capybara-webkit installation went smooth.
This issue is system specific. So just one answer might not resolve the issue. But keeping the brew doctor
happy is usually good.