{"id":1493,"date":"2011-12-19T08:50:08","date_gmt":"2011-12-19T12:50:08","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1493"},"modified":"2013-03-20T08:44:20","modified_gmt":"2013-03-20T12:44:20","slug":"error-event-h-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/error-event-h-no-such-file-or-directory","title":{"rendered":"error event.h: No such file or directory"},"content":{"rendered":"<p>While compiling a package say, Greensql you may end up with the &#8220;event.h: No such file or directory&#8221;\u00a0 error message as follows:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># make<\/span>\r\n<span style=\"color: #0000ff;\">g++ -g -Wno-deprecated -Wall -I\/usr\/local\/include\/ \r\n-c -o main.o main.cpp<\/span>\r\n<span style=\"color: #0000ff;\">main.cpp:23:19: error: event.h: No such file or directory<\/span><\/pre>\n<\/blockquote>\n<p><strong>It indicates that the required &#8216;libevent&#8217; package is missing from the server.<\/strong> You have to install the libevent and libevent-devel package either using YUM or from a RPM.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># yum install libevent libevent-devel<\/span><\/pre>\n<\/blockquote>\n<p><strong>OR<\/strong> install the RPMs:<strong><br \/>\n<\/strong><\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -ivh ftp:\/\/ftp.muug.mb.ca\/mirror\/centos\/5.7\/os\/x86_64\/\\\r\nCentOS\/libevent-1.4.13-1.x86_64.rpm<\/span>\r\n<span style=\"color: #0000ff;\"># rpm -ivh ftp:\/\/ftp.muug.mb.ca\/mirror\/centos\/5.7\/os\/x86_64\/\\\r\nCentOS\/libevent-devel-1.4.13-1.x86_64.rpm<\/span><\/pre>\n<\/blockquote>\n<p>(download the i386 version if you have a 32bit machine)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While compiling a package say, Greensql you may end up with the &#8220;event.h: No such file or directory&#8221;\u00a0 error message as follows:<\/p>\n<p># make<br \/>\ng++ -g -Wno-deprecated -Wall -I\/usr\/local\/include\/<br \/>\n-c -o main.o main.cpp<br \/>\nmain.cpp:23:19: error: event.h: No such file or directory<\/p>\n<p>It indicates that the required &#8216;libevent&#8217; package is missing from the server. You have to install the libevent and libevent-devel package either using YUM or from a RPM.<\/p>\n<p># yum install libevent libevent-devel<\/p>\n<p>OR install the RPMs:<\/p>\n<p># rpm -ivh ftp:\/\/ftp.muug.mb.ca\/mirror\/centos\/5.7\/os\/x86_64\/\\<br \/>\nCentOS\/libevent-1.4.13-1.x86_64.rpm<br \/>\n# rpm -ivh ftp:\/\/ftp.muug.mb.ca\/mirror\/centos\/5.7\/os\/x86_64\/\\<br \/>\nCentOS\/libevent-devel-1.4.13-1.x86_64.rpm<\/p>\n<p>(download the i386 version if you have a 32bit machine)<\/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":[1327,1328,1329],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1493"}],"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=1493"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1493\/revisions"}],"predecessor-version":[{"id":1497,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1493\/revisions\/1497"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}