Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Capybara-webkit fails installation on Ubuntu server 12.04 #362

Closed
wadesworld2112 opened this Issue · 3 comments

4 participants

@wadesworld2112

Trying to install capybara-webkit on Ubuntu server 12.04 fails.

The problem is TimeoutCommand.cpp is looking for QTimer.h which does not exist in the libqt4-dev package. Instead, the file is now named qtimer.h.

Modifying the source of TimeoutCommand.cpp to look for qtimer.h allows the code to compile, but of course on the next "bundle install" command, the changes are overwritten and compilation fails again.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

jenkins@svf-ci:~/jobs/build/workspace$ bundle install
Fetching gem metadata from http://rubygems.org/.....
Fetching gem metadata from http://rubygems.org/..
...
Using capybara-webkit (0.12.0) from https://github.com/thoughtbot/capybara-webkit.git (at master) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /var/lib/jenkins/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb 
cd src/ && /usr/bin/qmake /var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f/src/webkit_server.pro -spec /usr/share/qt4/mkspecs/linux-g++ -o Makefile.webkit_server
cd src/ && make -f Makefile.webkit_server 
make[1]: Entering directory `/var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -o TimeoutCommand.o TimeoutCommand.cpp
TimeoutCommand.cpp:5:20: fatal error: QTimer.h: No such file or directory
compilation terminated.
make[1]: *** [TimeoutCommand.o] Error 1
make[1]: Leaving directory `/var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
Command 'make' failed

make
cd src/ && make -f Makefile.webkit_server 
make[1]: Entering directory `/var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -o TimeoutCommand.o TimeoutCommand.cpp
TimeoutCommand.cpp:5:20: fatal error: QTimer.h: No such file or directory
compilation terminated.
make[1]: *** [TimeoutCommand.o] Error 1
make[1]: Leaving directory `/var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2


Gem files will remain installed in /var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f for inspection.
Results logged to /var/lib/jenkins/.rvm/gems/ruby-1.9.2-head@svf/bundler/gems/capybara-webkit-da93136a9c6f/./gem_make.out
An error occured while installing capybara-webkit (0.12.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.12.0'` succeeds before bundling.
@sbounmy

+1 here, on ubuntu 10.04

@avokhmin avokhmin referenced this issue from a commit in avokhmin/capybara-webkit
@avokhmin avokhmin #362: Include QTimer library has been updated. f869529
@mhoran
Collaborator

Resolved by #370.

@mhoran mhoran closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.