Issues after upgrading to Qt5 on Yosemite: webkit_server failed to start and can't install capybara-webkit 1.6.0 #813
Description
Hi. I just upgraded to Qt5 per the instructions on the Wiki:
brew uninstall qt
brew install qt5
ln -s /usr/local/Cellar/qt5/5.4.2/bin/qmake /usr/local/bin/qmake
I had already upgraded to capybara-webkit 1.6.0 before upgrading to Qt5. When I saw the warning about Qt4, it prompted me to upgrade. Once I upgraded, I ran my specs, and now all specs with js: true
are failing with webkit_server failed to start.
So then I tried uninstalling and reinstalling capybara-webkit. But now, I can no longer install capybara-webkit. I get the following error:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/moncefbelyamani/.rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150709-38307-w3r97t.rb extconf.rb
Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/moncefbelyamani/.rvm/rubies/ruby-2.2.2/bin/$(RUBY_BASE_NAME)
--with-gl-dir
--without-gl-dir
--with-gl-include
--without-gl-include=${gl-dir}/include
--with-gl-lib
--without-gl-lib=${gl-dir}/lib
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
Command '/usr/local/bin/qmake LIBS\ \+\=\ -L/usr/local/opt/libyaml/lib\ -L/usr/local/opt/readline/lib\ -L/usr/local/opt/libksba/lib\ -L/usr/local/opt/openssl/lib' failed
extconf failed, exit code 1
Gem files will remain installed in /Users/moncefbelyamani/.rvm/gems/ruby-2.2.2@save-ferris/gems/capybara-webkit-1.6.0 for inspection.
Results logged to /Users/moncefbelyamani/.rvm/gems/ruby-2.2.2@save-ferris/extensions/x86_64-darwin-14/2.2.0/capybara-webkit-1.6.0/gem_make.out
An error occurred while installing capybara-webkit (1.6.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '1.6.0'` succeeds before bundling.
Note that it mentions Xcode not being set up properly, but I never installed Xcode on this machine. I only have the standalone command line tools via xcode select --install
.
Everything was working perfectly until I upgraded. I noticed that the Wiki does not mention Yosemite. Could it be that there are additional steps required to use Qt5 on Yosemite?
If I uninstall qt5 and install qt, everything goes back to normal and I can bundle
again to install capybara-webkit 1.6.0, and my tests pass again.