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.

PHP Code:
 yum search db 
It will list the db as well as db-devel packages, something like:
PHP Code:
db4.i386
db4
-devel.i386 
Or

PHP Code:
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

PHP Code:
uname -
If your machine is 64 bit (i.e. x86_64), install the following packages

PHP Code:
yum install db4.x86_64
yum install db4
-devel.x86_64