Skip to content

Instantly share code, notes, and snippets.

@atz
Created December 20, 2012 21:39
Show Gist options
  • Save atz/4348800 to your computer and use it in GitHub Desktop.
Save atz/4348800 to your computer and use it in GitHub Desktop.
capybara-webkit, why you no work!? Build errors from "gem install capybara-webkit".
/usr/bin/ruby1.9.1 extconf.rb
cd src/ && /usr/bin/qmake-qt4 /home/atz/.bundler/tmp/27594/gems/capybara-webkit-0.12.1/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 `/home/atz/.bundler/tmp/27594/gems/capybara-webkit-0.12.1/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -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 IgnoreSslErrors.o IgnoreSslErrors.cpp
In file included from IgnoreSslErrors.h:1:0,
from IgnoreSslErrors.cpp:1:
Command.h:4:19: fatal error: QObject: No such file or directory
compilation terminated.
make[1]: *** [IgnoreSslErrors.o] Error 1
make[1]: Leaving directory `/home/atz/.bundler/tmp/27594/gems/capybara-webkit-0.12.1/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
make
cd src/ && make -f Makefile.webkit_server
make[1]: Entering directory `/home/atz/.bundler/tmp/27594/gems/capybara-webkit-0.12.1/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -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 IgnoreSslErrors.o IgnoreSslErrors.cpp
In file included from IgnoreSslErrors.h:1:0,
from IgnoreSslErrors.cpp:1:
Command.h:4:19: fatal error: QObject: No such file or directory
compilation terminated.
make[1]: *** [IgnoreSslErrors.o] Error 1
make[1]: Leaving directory `/home/atz/.bundler/tmp/27594/gems/capybara-webkit-0.12.1/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
@atz
Copy link
Author

atz commented Dec 20, 2012

fixed by apt-get install libqt4-dev libqtwebkit-dev
thoughtbot/capybara-webkit#77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment