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

If the db4 packages (db4 and db4-devel) are missing on the server it results in “version.c:30:16: error: db.h” error message while installing any package. The error looks like:

version.c:30:16: error: db.h: No such file or directory
make: *** [version.o] Error 1

See if the db4 packages are installed

# rpm -qa | grep db4-devel
 db4-4.2.52-7.3.el4
 db4-devel-4.2.52-7.3.el4

If the above commands returns nothing, you have to install the db4 and db4-devel packages. Search the packages using yum and it should list both of them:

# yum search db4

It will list both the db4 and db4-devel packages

db4.x86_64
db4-devel.x86_64

Now, install them

# yum install db4.x86_64
# yum install db4-devel.x86_64
This entry was posted on Friday, April 9th, 2010 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.