Enrique Canals
Software Engineer
Issues Installing Capybara-Webkit on OS X 10.9 (Mavericks)
November 05, 2013
Fix issues with Qt and qmake on OS X 10.9 Mavericks
I just recently decided to upgrade to OS X 10.9 from 10.8 and ran into a pretty crappy issue while installing the capybara-webkit gem. When running bundle install, I received the following error
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
/Users/$USER/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
Command 'qmake -spec macx-g++' not available
After some searching I was able to find several posts mentioning that the most recent stable version of Qt isn’t fully supported on 10.9. As such, I decided to try the beta which worked!
Step 1: Download Qt 5.2.0-beta-1-clang HERE.
Step 2: Install it and include the Src files.
Step 3: Symlink qmake into your /bin directory from the location where you installed Qt. The default location is in your home directory. Open a shell and do something like:
ln -s /Path/to/where/you/installed/Qt5.2/5.2.0-beta1/clang_64/bin/qmake /usr/local/bin/qmake
That should do it. Now when you gem install capybara-webkit it shouldn’t bitch about qmake not being available.
Now go compute!