Skip to content

Instantly share code, notes, and snippets.

@humandoing
Created August 27, 2013 17:49
Show Gist options
  • Save humandoing/6356727 to your computer and use it in GitHub Desktop.
Save humandoing/6356727 to your computer and use it in GitHub Desktop.
Compile error installing capybara-webkit 1.0 on Ubuntu 10.04.4 LTS. Have installed all the QT4 stuff that I can think of.
Installing capybara-webkit (1.0.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
cd src/ && /usr/bin/qmake /home/deploy/chimp/shared/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0/src/webkit_server.pro -spec /usr/share/qt4/mkspecs/linux-g++ -unix -o Makefile.webkit_server
cd src/ && make -f Makefile.webkit_server
make[1]: Entering directory `/home/deploy/chimp/shared/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0/src'
g++ -pipe -O2 -Wall -W -D_REENTRANT -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. -x c++-header -c stable.h -o webkit_server.gch/c++
g++ -c -include webkit_server -pipe -O2 -Wall -W -D_REENTRANT -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 Version.o Version.cpp
Version.cpp: In member function ‘virtual void Version::start()’:
Version.cpp:11: error: ‘QTWEBKIT_VERSION_STR’ was not declared in this scope
make[1]: *** [Version.o] Error 1
make[1]: Leaving directory `/home/deploy/chimp/shared/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0/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 `/home/deploy/chimp/shared/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0/src'
g++ -c -include webkit_server -pipe -O2 -Wall -W -D_REENTRANT -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 Version.o Version.cpp
Version.cpp: In member function ‘virtual void Version::start()’:
Version.cpp:11: error: ‘QTWEBKIT_VERSION_STR’ was not declared in this scope
make[1]: *** [Version.o] Error 1
make[1]: Leaving directory `/home/deploy/chimp/shared/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2
Gem files will remain installed in /home/deploy/chimp/releases/20130827171354/vendor/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0 for inspection.
Results logged to /home/deploy/chimp/releases/20130827171354/vendor/bundle/ruby/1.9.1/gems/capybara-webkit-1.0.0/./gem_make.out
An error occured while installing capybara-webkit (1.0.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '1.0.0'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment