{"id":27,"date":"2021-01-04T13:55:58","date_gmt":"2021-01-04T05:55:58","guid":{"rendered":"https:\/\/explause.com\/?p=27"},"modified":"2021-01-04T13:55:58","modified_gmt":"2021-01-04T05:55:58","slug":"centos7%e7%bc%96%e8%af%91libzip","status":"publish","type":"post","link":"https:\/\/devdoge.org\/?p=27","title":{"rendered":"CentOS7\u7f16\u8bd1libzip"},"content":{"rendered":"\n<p>\u60f3\u5b89\u88c5\u6700\u65b0\u7248PHP\u4f46\u662f\u63d0\u793alibzip\u7248\u672c\u4f4e\uff1f\u90a3\u5c31\u7f16\u8bd1\u5b89\u88c5\u5427\uff01<\/p>\n\n\n<p>\u5982\u679c\u7528yum\u6216dnf\u5b89\u88c5\u4e86\u4f4e\u7248\u672c\u7684libzip\uff0c\u5c31\u5148\u5378\u8f7d\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>yum remove libzip -y<\/code><\/pre>\n\n\n<p><strong>\u6ce8\u610f\uff0c\u8981\u5148<a href=\"https:\/\/explause.com\/?p=30\" data-type=\"URL\" data-id=\"https:\/\/explause.com\/?p=30\">\u7f16\u8bd1\u9ad8\u7248\u672c\u7684cmake<\/a>\uff01<\/strong><\/p>\n\n\n<p>\u4e0b\u8f7d\u6700\u65b0\u7248libzip\u7684\u6e90\u7801\u5e76\u89e3\u538b\u8fdb\u5165\u6e90\u7801\u76ee\u5f55\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>yum install wget -y\nwget https:\/\/libzip.org\/download\/libzip-1.7.3.tar.gz\ntar xzf libzip-1.7.3.tar.gz\ncd libzip-1.7.3<\/code><\/pre>\n\n\n<p>\u65b0\u5efa\u4e00\u4e2a\u653e\u7f16\u8bd1\u914d\u7f6e\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u5e76\u8fdb\u5165\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>mkdir build\ncd build<\/code><\/pre>\n\n\n<p>\u5b89\u88c5\u4f9d\u8d56\u548c\u5de5\u5177\u5305\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>yum groupinstall 'Development tools' -y\nyum install nettle-devel gnutls-devel mbedtls-devel \\\nbzip2-devel openssl-devel bzip2 bzip2-devel xz-devel -y<\/code><\/pre>\n\n\n<p>\u751f\u6210\u7f16\u8bd1\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>cmake -DCMAKE_INSTALL_PREFIX=\/usr ..<\/code><\/pre>\n\n\n<p>\u7f16\u8bd1\u5e76\u5b89\u88c5\uff0c\u7ed3\u675f\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>make &amp;&amp; make install<\/code><\/pre>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f16\u8bd1PHP\u7684\u524d\u7f6e\u4f9d\u8d56\uff0c\u7ad9\u957f\u5c06\u9700\u8981\u7684\u4f9d\u8d56\u90fd\u6574\u7406\u597d\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[9,21],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-c7","tag-centos7","tag-21"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":0,"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}