{"id":498,"date":"2013-07-22T22:42:10","date_gmt":"2013-07-22T14:42:10","guid":{"rendered":"http:\/\/www.kiccleaf.com\/?p=498"},"modified":"2013-07-22T22:42:41","modified_gmt":"2013-07-22T14:42:41","slug":"php%e7%bc%96%e8%af%91%e4%b8%ad%e9%81%87%e5%88%b0error%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%81%e8%bd%ac","status":"publish","type":"post","link":"http:\/\/www.kiccleaf.com\/?p=498","title":{"rendered":"php\u7f16\u8bd1\u4e2d\u9047\u5230error\u89e3\u51b3\u529e\u6cd5\uff01[\u8f6c]"},"content":{"rendered":"<p>\u5728\u7f16\u8bd1php\u7684\u8fc7\u7a0b\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u4e00\u4e9b\u9519\u8bef\u4fe1\u606f\uff0c\u7f51\u7edc\u4e0a\u641c\u7d22\u4e86\u4e00\u4e0b\u8fd8\u662f\u6bd4\u8f83\u6709\u7528\u7684\uff0c\u6536\u85cf\u4e00\u4e0b\uff01<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n1) Configure: error: xml2-config not found. Please check your libxml2 installation.\r\nSolutions :\r\nQuote:\r\n#yum install libxml2 libxml2-devel (For Redhat &amp; Fedora)\r\n# aptitude install libxml2-dev      (For ubuntu)\r\n\r\n2) Checking for pkg-config\u2026 \/usr\/bin\/pkg-config \r\nconfigure: error: Cannot find OpenSSL\u2019s &lt;evp.h&gt;\r\nSolutions :\r\nQuote:\r\n#yum install openssl openssl-devel\r\n\r\n3) Configure: error: Please reinstall the BZip2 distribution\r\nSolutions :\r\nQuote:\r\n# yum install bzip2 bzip2-devel\r\n\r\n4) Configure: error: Please reinstall the libcurl distribution - \r\neasy.h should be in &lt;curl-dir&gt;\/include\/curl\/\r\nSolutions :\r\nQuote:\r\n# yum install curl curl-devel   (For Redhat &amp; Fedora)\r\n# install libcurl4-gnutls-dev    (For Ubuntu) \r\n\r\n5) Configure: error: libjpeg.(also) not found.\r\nSolutions :\r\nQuote:\r\n# yum install libjpeg libjpeg-devel\r\n\r\n6) Configure: error: libpng.(also) not found.\r\nSolutions :\r\nQuote:\r\n# yum install libpng libpng-devel\r\n\r\n7) Configure: error: freetype.h not found. \r\nSolutions :\r\nQuote:\r\n#yum install freetype-devel\r\n\r\n8) Configure: error: Unable to locate gmp.h\r\nSolutions :\r\nQuote:\r\n# yum install gmp-devel\r\n\r\n9) Configure: error: Cannot find MySQL header files under \/usr. \r\nNote that the MySQL client library is not bundled anymore!\r\nSolutions :\r\nQuote:\r\n# yum install mysql-devel            (For Redhat &amp; Fedora)\r\n# apt-get install libmysql++-dev      (For Ubuntu) \r\n\r\n10) Configure: error: Please reinstall the ncurses distribution\r\nSolutions :\r\nQuote:\r\n# yum install ncurses ncurses-devel\r\n\r\n11) Checking for unixODBC support\u2026 configure: error: ODBC header file \u2018\/usr\/include\/sqlext.h\u2019 not found!\r\nSolutions :\r\nQuote:\r\n# yum install unixODBC-devel\r\n\r\n12) Configure: error: Cannot find pspell\r\nSolutions :\r\nQuote:\r\n# yum install pspell-devel\r\n\r\n13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.\r\nSolutions :\r\nQuote:\r\n# yum install libmcrypt libmcrypt-devel    (For Redhat &amp; Fedora)\r\n# apt-get install libmcrypt-dev \r\n\r\n14) Configure: error: snmp.h not found. Check your SNMP installation.\r\nSolutions :\r\nQuote:\r\n# yum install net-snmp net-snmp-devel\r\n\r\n15)configure: error: Please reinstall libmhash \u2013 I cannot find mhash.h\r\n#yum install mhash-devel\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7f16\u8bd1php\u7684\u8fc7\u7a0b\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u4e00\u4e9b\u9519\u8bef\u4fe1\u606f\uff0c\u7f51\u7edc&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.kiccleaf.com\/?p=498\">Continue reading<span class=\"screen-reader-text\">php\u7f16\u8bd1\u4e2d\u9047\u5230error\u89e3\u51b3\u529e\u6cd5\uff01[\u8f6c]<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2,"footnotes":""},"categories":[6,4],"tags":[33],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux-","tag-php","entry"],"views":6624,"_links":{"self":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=498"}],"version-history":[{"count":0,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/498\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}