{"id":640,"date":"2012-08-29T13:50:10","date_gmt":"2012-08-29T13:50:10","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=640"},"modified":"2012-08-31T03:30:40","modified_gmt":"2012-08-31T03:30:40","slug":"configure-error-xml2-config-not-found-please-check-your-libxml2-installation","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=640","title":{"rendered":"configure: error: xml2-config not found. Please check your libxml2 installation."},"content":{"rendered":"<p>On Centos 6.3 while installing PHP 5.4 I ran into the subject error.<br \/>\nThis fixed it:<br \/>\n# yum install libxml2-devel<br \/>\nnote: on other OS you should try to apt-get install libxml2-dev<\/p>\n<p>Here is the configure command I&#8217;m trying to do:<br \/>\n<code><br \/>\n'.\/configure' \\<br \/>\n'--with-apxs2=\/usr\/local\/apache2\/bin\/apxs' \\<br \/>\n'--with-mysql' \\<br \/>\n'--libdir=\/usr\/lib64' \\<br \/>\n'--with-libdir=lib64' \\<br \/>\n'--with-zlib' \\<br \/>\n'--with-gettext' \\<br \/>\n'--with-gdbm' \\<br \/>\n'--with-gd' \\<br \/>\n'--with-jpeg-dir=\/usr' \\<br \/>\n'--with-freetype-dir=\/usr' \\<br \/>\n'--with-mcrypt' \\<br \/>\n'--with-openssl' \\<br \/>\n\"$@\"<\/code><\/p>\n<p>Next error: configure: error: DBA: Could not find necessary header file(s).<br \/>\nfixed it with:<br \/>\n# yum install gdbm-devel<\/p>\n<p>Next: configure: error: jpeglib.h not found.<br \/>\n# yum install libjpeg-devel.x86_64<br \/>\n(that was a hard one to find!)<\/p>\n<p>configure: error: freetype.h not found.<br \/>\n# yum install freetype-devel<\/p>\n<p>configure: error: mcrypt.h not found. Please reinstall libmcrypt.<br \/>\nThere does not seem to be any good \/ easy solution to this on CentOS 6.3.<\/p>\n<p>UPDATE: <a href=\"http:\/\/cyruslab.wordpress.com\/2012\/06\/07\/centos-6-2-mcrypt-and-libmcrypt-not-found-in-yum-repolist\/\">This guy has the solution<\/a><\/p>\n<p><code>rpm -ivh http:\/\/download.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-7.noarch.rpm<br \/>\nyum update<br \/>\nyum install libmcrypt-devel<br \/>\nyum install mcrypt-devel<br \/>\nyum install php-mcrypt<\/code><\/p>\n<p>Configure worked!<br \/>\nit works now, yay<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Centos 6.3 while installing PHP 5.4 I ran into the subject error. This fixed it: # yum install libxml2-devel note: on other OS you should try to apt-get install libxml2-dev Here is the configure command I&#8217;m trying to do: &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=640\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/640"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=640"}],"version-history":[{"count":15,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions"}],"predecessor-version":[{"id":675,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions\/675"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}