Hi
I am getting the following error. I am using Red Hat Enterprise Linux Server release 5.5 (Tikanga)
pls help. Thanks in Advance
Pradeep
===
Using capybara-webkit (0.13.0) from git://
github.com/thoughtbot/capybara-webkit (at master) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
cd src && /usr/bin/qmake
webkit_server.pro -spec /usr/lib/qt4/mkspecs/linux-g++ -unix -o Makefile.webkit_server
cd src && make -f Makefile.webkit_server
make[1]: Entering directory `/opt/mongoose/vendor/bundle/ruby/1.9.1/bundler/gems/capybara-webkit-bca84f9a5779/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I. -I. -o EnableLogging.o EnableLogging.cpp
In file included from EnableLogging.cpp:2:
WebPageManager.h:6:25: error: QNetworkReply: No such file or directory
/usr/lib/qt4/include/QtCore/qatomic_i386.h: In function 'int q_atomic_test_and_set_ptr(volatile void*, void*, void*)':
/usr/lib/qt4/include/QtCore/qatomic_i386.h:58: error: cast from 'void*' to 'int' loses precision
/usr/lib/qt4/include/QtCore/qatomic_i386.h:59: error: cast from 'void*' to 'int' loses precision
/usr/lib/qt4/include/QtCore/qatomic_i386.h: In function 'void* q_atomic_set_ptr(volatile void*, void*)':
/usr/lib/qt4/include/QtCore/qatomic_i386.h:98: error: cast from 'void*' to 'int' loses precision
WebPageManager.h: At global scope:
WebPageManager.h:32: error: 'QNetworkReply' has not been declared
WebPageManager.h:37: error: 'QNetworkReply' has not been declared
make[1]: *** [EnableLogging.o] Error 1
make[1]: Leaving directory `/opt/mongoose/vendor/bundle/ruby/1.9.1/bundler/gems/capybara-webkit-bca84f9a5779/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 `/opt/mongoose/vendor/bundle/ruby/1.9.1/bundler/gems/capybara-webkit-bca84f9a5779/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I. -I. -o EnableLogging.o EnableLogging.cpp
In file included from EnableLogging.cpp:2:
WebPageManager.h:6:25: error: QNetworkReply: No such file or directory
/usr/lib/qt4/include/QtCore/qatomic_i386.h: In function 'int q_atomic_test_and_set_ptr(volatile void*, void*, void*)':
/usr/lib/qt4/include/QtCore/qatomic_i386.h:58: error: cast from 'void*' to 'int' loses precision
/usr/lib/qt4/include/QtCore/qatomic_i386.h:59: error: cast from 'void*' to 'int' loses precision
/usr/lib/qt4/include/QtCore/qatomic_i386.h: In function 'void* q_atomic_set_ptr(volatile void*, void*)':
/usr/lib/qt4/include/QtCore/qatomic_i386.h:98: error: cast from 'void*' to 'int' loses precision
WebPageManager.h: At global scope:
WebPageManager.h:32: error: 'QNetworkReply' has not been declared
WebPageManager.h:37: error: 'QNetworkReply' has not been declared
make[1]: *** [EnableLogging.o] Error 1
make[1]: Leaving directory `/opt/mongoose/vendor/bundle/ruby/1.9.1/bundler/gems/capybara-webkit-bca84f9a5779/src'
make: *** [sub-src_webkit_server_pro-make_default-ordered] Error 2
Gem files will remain installed in /opt/mongoose/vendor/bundle/ruby/1.9.1/bundler/gems/capybara-webkit-bca84f9a5779 for inspection.
Results logged to /opt/mongoose/vendor/bundle/ruby/1.9.1/bundler/gems/capybara-webkit-bca84f9a5779/./gem_make.out
An error occurred while installing capybara-webkit (0.13.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.13.0'` succeeds before bundling.