{"id":616,"date":"2010-04-09T08:21:11","date_gmt":"2010-04-09T12:21:11","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=616"},"modified":"2013-03-20T08:42:49","modified_gmt":"2013-03-20T12:42:49","slug":"version-c-error-db-h-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/version-c-error-db-h-no-such-file-or-directory","title":{"rendered":"version.c:30:16: error: db.h: No such file or directory"},"content":{"rendered":"<p>If the db4 packages (db4 and db4-devel) are missing on the server it results in &#8220;version.c:30:16: error: db.h&#8221; error message while installing any package. The error looks like:<\/p>\n<blockquote>\n<pre>version.c:30:16: error: db.h: No such file or directory\r\nmake: *** [version.o] Error 1<\/pre>\n<\/blockquote>\n<p>See if the db4 packages are installed<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -qa | grep db4-devel<\/span>\r\n<span style=\"color: #0000ff;\"> db4-4.2.52-7.3.el4<\/span>\r\n<span style=\"color: #0000ff;\"> db4-devel-4.2.52-7.3.el4<\/span><\/pre>\n<\/blockquote>\n<p>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:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># yum search db4<\/span><\/pre>\n<\/blockquote>\n<p>It will list both the db4 and db4-devel packages<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">db4.x86_64<\/span>\r\n<span style=\"color: #0000ff;\">db4-devel.x86_64<\/span><\/pre>\n<\/blockquote>\n<p>Now, install them<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># yum install db4.x86_64<\/span>\r\n<span style=\"color: #0000ff;\"># yum install db4-devel.x86_64<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>If the db4 packages (db4 and db4-devel) are missing on the server it results in &#8220;version.c:30:16: error: db.h&#8221; error message while installing any package. The error looks like:<\/p>\n<p>version.c:30:16: error: db.h: No such file or directory<br \/>\nmake: *** [version.o] Error 1<\/p>\n<p>See if the db4 packages are installed<\/p>\n<p># rpm -qa | grep db4-devel<br \/>\n db4-4.2.52-7.3.el4<br \/>\n db4-devel-4.2.52-7.3.el4<\/p>\n<p>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:<\/p>\n<p># yum search db4<\/p>\n<p>It will list both the db4 and db4-devel [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1354,795,1355,797,801,802],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/616"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/616\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/616\/revisions\/618"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}