version.c:30:16: error: db.h: No such file or directory

Posted by admin     Category: Linux Administration

version.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.i386

Or

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: , , , , , ,

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image