{"id":1657,"date":"2015-12-23T11:21:04","date_gmt":"2015-12-23T03:21:04","guid":{"rendered":"http:\/\/www.51cos.com\/?p=1657"},"modified":"2015-12-23T11:21:04","modified_gmt":"2015-12-23T03:21:04","slug":"no-package-libxml-2-0-found","status":"publish","type":"post","link":"http:\/\/www.51cos.com\/?p=1657","title":{"rendered":"No package &#8216;libxml-2.0&#8217; found"},"content":{"rendered":"<p>\u5728configure\u8fc7\u7a0b\u8fd8\u53ef\u80fd\u51fa\u73b0\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n<pre class=\"prettyprint linenums\" >\n<p>checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:<\/p>\n<p>No package 'libxml-2.0' found<\/p>\n<p>Consider adjusting the PKG_CONFIG_PATH environment variable if you<br \/>\ninstalled software in a non-standard prefix.<\/p>\n<p>Alternatively, you may set the environment variables LIBXML2_CFLAGS<br \/>\nand LIBXML2_LIBS to avoid the need to call pkg-config.<br \/>\nSee the pkg-config man page for more details.<\/p>\n<p>\u5e94\u8be5\u662fXML\u5e93\u6307\u5b9a\u8def\u5f84\u9519\u8bef\uff0c\u91cd\u65b0\u6307\u5b9a\uff1a<\/p>\n<pre class=\"prettyprint linenums\" >\n.\/configure  --prefix=<span class=\"katex math inline\">(pwd)\/install --host=mips-linux-gnu  \\<br \/>\nLIBXML2_LIBS='-L<\/span>{xml_install_dir}\/lib -lxml2' LIBXML2_CFLAGS='-I${xml_install_dir}\/include\/libxml2'<\/p>\n<p>\u8fd8\u662f\u4e0d\u884c\uff0cdebug\u4e86\u5f88\u4e45\uff0c\u6700\u540e\u53d1\u73b0\u6253\u5f00configure\u6587\u4ef6\u53d1\u73b0\uff1a<\/p>\n<pre class=\"prettyprint linenums\" >\nif test -n \"<span class=\"katex math inline\">libxml2_LIBS\"; then<br \/>\n    pkg_cv_libxml2_LIBS=\"<\/span>libxml2_LIBS\"<\/p>\n<p>\u96be\u9053\u8981\u5c0f\u5199\uff1f<\/p>\n<pre class=\"prettyprint linenums\" >\n.\/configure  --prefix=<span class=\"katex math inline\">(pwd)\/install --host=mips-linux-gnu  \\<br \/>\nlibxml2_LIBS='-L<\/span>{xml_install_dir}\/lib -lxml2' libxml2_CFLAGS='-I${xml_install_dir}\/include\/libxml2'<\/p>\n<p>\u6539\u6210\u5c0f\u5199\u679c\u7136\u53ef\u4ee5\u4e86\uff0c\u771f\u662f\u9632\u4e0d\u80dc\u9632\u554a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728configure\u8fc7\u7a0b\u8fd8\u53ef\u80fd\u51fa\u73b0\u4e00\u4e2a\u95ee\u9898\uff1a checking for LIBXML2&#8230; configur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1657","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/1657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1657"}],"version-history":[{"count":1,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/1657\/revisions"}],"predecessor-version":[{"id":1658,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/1657\/revisions\/1658"}],"wp:attachment":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}