PDA

View Full Version : help installing qtstalker; missing db.h



mmullins
8th June 2010, 09:30 AM
I am trying to install the program qtstalker

I have run ./configure successfully
But i get the following errors when i run make

cd lib && make -f Makefile
make[1]: Entering directory `/home/martin/Apps/qtstalker-0.36/lib'
g++ -c -pipe -ffast-math -Wall -W -g -D_REENTRANT -fPIC -DQT_NO_COMPAT -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I/usr/lib64/qt-3.3/mkspecs/default -I. -I/usr/local/include/ta-lib -I/usr/lib64/qt-3.3/include -o QuotePlugin.o QuotePlugin.cpp
In file included from DBIndex.h:27,
from QuotePlugin.h:35,
from QuotePlugin.cpp:22:
DBBase.h:26:16: error: db.h: No such file or directory
In file included from DBIndex.h:27,
from QuotePlugin.h:35,
from QuotePlugin.cpp:22:
DBBase.h:44: error: ISO C++ forbids declaration of ‘DB’ with no type
DBBase.h:44: error: expected ‘;’ before ‘*’ token
make[1]: *** [QuotePlugin.o] Error 1
make[1]: Leaving directory `/home/martin/Apps/qtstalker-0.36/lib'
make: *** [sub-lib] Error 2


I've definitely have a db.h as locate db.h gives

/usr/include/db4.7.25/db.h
/usr/include/linux/adb.h
/usr/share/doc/pam-1.1.1/html/sag-pam_userdb.html


So why am i getting "error: db.h: No such file or directory"???
-> How can i fix this?

Skull One
8th June 2010, 09:46 AM
/usr/include/db4.7.25/db.h

is provided by 'compat-db47'.
I guess it is not this file that you need. Try :


yum install db4-devel

mmullins
8th June 2010, 09:50 AM
cheers it's running now thanks