{"id":31,"date":"2022-09-19T19:12:30","date_gmt":"2022-09-19T11:12:30","guid":{"rendered":"https:\/\/mianka.xyz\/?p=29"},"modified":"2022-09-19T19:15:41","modified_gmt":"2022-09-19T11:15:41","slug":"php74-zip","status":"publish","type":"post","link":"https:\/\/www.mianka.xyz\/?p=31","title":{"rendered":"php7.4 \u5b89\u88c5zip\u6269\u5c55\u5305"},"content":{"rendered":"<h1>\u4f7f\u7528\u5b9d\u5854\u73af\u5883\u5b89\u88c5php7.4\u540e\uff0c\u53d1\u73b0\u6ca1\u6709\u5b89\u88c5zip\u6269\u5c55\uff0c\u5982\u4e0b\u6b65\u9aa4\u89e3\u51b3\u95ee\u9898\uff1a<\/h1>\n<p><\/p>\n<h2>\u5b89\u88c5libzip<\/h2>\n<pre class=\"prism-highlight prism-language-markup\">yum&nbsp;remove&nbsp;libzip&nbsp;libzip-devel\n&nbsp;\nwget&nbsp;https:\/\/hqidi.com\/big\/libzip-1.2.0.tar.gz\n&nbsp;\ntar&nbsp;-zxvf&nbsp;libzip-1.2.0.tar.gz\n&nbsp;\ncd&nbsp;libzip-1.2.0\n&nbsp;\n.\/configure\n&nbsp;\nmake&nbsp;&amp;&amp;&nbsp;make&nbsp;install<\/pre>\n<p><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u67e5\u770b\u662f\u5426\u5b58\u5728\/usr\/local\/lib\/pkgconfig\u76ee\u5f55,\u5982\u679c\u5b58\u5728\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u6765\u8bbe\u7f6ePKG_CONFIG_PATH\uff1a<\/p>\n<pre class=\"prism-highlight prism-language-markup\">export&nbsp;PKG_CONFIG_PATH=&quot;\/usr\/local\/lib\/pkgconfig\/&quot;<\/pre>\n<p>\u5b89\u88c5ZipArchive<\/p>\n<pre class=\"prism-highlight prism-language-markup\">cd&nbsp;\/www\/server\/php\/74\/src\/ext\/zip\n&nbsp;\n\/www\/server\/php\/74\/bin\/phpize\n&nbsp;\n.\/configure&nbsp;--with-php-config=\/www\/server\/php\/74\/bin\/php-config\n&nbsp;\nmake&nbsp;&amp;&amp;&nbsp;make&nbsp;install\n&nbsp;\necho&nbsp;&quot;extension&nbsp;=&nbsp;zip.so&quot;&nbsp;&gt;&gt;&nbsp;\/www\/server\/php\/74\/etc\/php.ini<\/pre>\n<p>\u91cd\u542fphp\u5373\u53ef\u3002<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<h1>\u4f7f\u7528\u5b9d\u5854\u73af\u5883\u5b89\u88c5php7.4\u540e\uff0c\u53d1\u73b0\u6ca1\u6709\u5b89\u88c5zip\u6269\u5c55\uff0c\u5982\u4e0b\u6b65\u9aa4\u89e3\u51b3\u95ee\u9898\uff1a<\/h1>\n<p><\/p>\n<h2>\u5b89\u88c5libzip<\/h2>\n<pre class=\"prism-highlight prism-language-markup\">yum&nbsp;remove&nbsp;libzip&nbsp;libzip-devel\n&nbsp;\nwget&nbsp;https:\/\/hqidi.com\/big\/libzip-1.2.0.tar.gz\n&nbsp;\ntar&nbsp;-zxvf&nbsp;libzip-1.2.0.tar.gz\n&nbsp;\ncd&nbsp;libzip-1.2.0\n&nbsp;\n.\/configure\n&nbsp;\nmake&nbsp;&amp;&amp;&nbsp;make&nbsp;install<\/pre>\n<p><!--autointro--><\/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],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-phpbiji","tag-php"],"_links":{"self":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":0,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}