version.c:30:16: error: db.h: No such file or directory
Posted by Category: Linux Administrationversion.c:30:16: error: db.h: No such file or directory
make: *** [version.o] Error 1
If you receive the db.h error message while installaing a package, you are surely missing db and db-devel packages. You need to install the db and db-devel packages using yum.
First search the package using yum.
yum search db
It will list the db as well as db-devel packages, something like:
db4.i386
db4-devel.i386Or
db4.x86_64
db4-devel.x86_64
Install the appropriate packages depending on whether your server is 32 OR 64 bit. You can find it out with the command
uname -p
If your machine is 64 bit (i.e. x86_64), install the following packages
yum install db4.x86_64
yum install db4-devel.x86_64
Tags: check the acrhitecture of server, command to check32 and 64 bit machine, error: db.h no such file, install db and db-devel package, install db-devel using yum, searching the db-devel package using yum, version.c:30:16: error: db.h
