brew update
cd $( brew --prefix )/Homebrew/Library/Taps/homebrew/homebrew-core
git checkout 9ba3d6ef8891e5c15dbdc9333f857b13711d4e97 Formula/[email protected]
brew reinstall [email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"
which qmake # to see where it links
rm `which qmake` # IF it is linking to an old version .
$ which qmake
/usr/local/bin/qmake
install qt from site
https://www.qt.io/download-thank-you
install and
QMAKE=~/Qt/5.5/clang_64/bin/qmake gem install capybara-webkit
cd /Applications/Xcode.app/Contents/Developer/usr/bin/
sudo ln -s xcodebuild xcrun
Old Qt versions don't supported modern systems, because they were released long ago and are not updated for a log time.
Install Qt 5.9 from http://download.qt.io/official_releases/qt/5.9/5.9.2/qt-opensource-mac-x64-5.9.2.dmg and unpack QtWebKit from https://github.com/annulen/webkit/releases/download/qtwebkit-5.212.0-alpha2/qtwebkit-5.212.0_alpha2-qt59-darwin-x64.tar.xz into Qt root (your ".../clang_64" path)