{"id":330,"date":"2018-07-15T16:08:33","date_gmt":"2018-07-15T08:08:33","guid":{"rendered":"http:\/\/blog.lovexu.cc\/?p=330"},"modified":"2022-09-17T12:07:41","modified_gmt":"2022-09-17T04:07:41","slug":"centos-7-%e5%ae%89%e8%a3%85perl%e7%8e%af%e5%a2%83%e5%90%8e%e9%81%87%e5%88%b0%e7%9a%84%e4%b8%80%e4%b8%aa%e5%b0%8f%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/330.html","title":{"rendered":"CENTOS 7 \u5b89\u88c5perl\u73af\u5883\u540e\u9047\u5230\u7684\u4e00\u4e2a\u5c0f\u95ee\u9898"},"content":{"rendered":"<p>\u9996\u5148\u611f\u8c22<a href=\"https:\/\/blog.csdn.net\/zhang6622056\" target=\"_blank\"  rel=\"nofollow\" >zhang6622056\u7684\u4e13\u680f<\/a>\u53ca<a href=\"https:\/\/blog.csdn.net\/yangyangrenren\" target=\"_blank\"  rel=\"nofollow\" >yangyangrenren\u7684\u4e13\u680f<\/a>\u7684\u6587\u7ae0\u3002<\/p>\n<p>\u4e3a\u4e86\u5b89\u88c517ce\u7684\u5ba2\u6237\u7aef\uff0c\u9700\u8981\u5b89\u88c5perl\u3002<\/p>\n<h1>\u7b2c\u4e00\u90e8\u5206\u5b89\u88c5perl<\/h1>\n<h4 id=\"\u524d\u8a00\">\u524d\u8a00<\/h4>\n<p>\u6700\u8fd1\u5f00\u59cb\u5b66\u4e60linux\u865a\u62df\u673a\u76f8\u5173\u7684\u4e1c\u897f\uff0c\u5728\u521a\u521a\u5f00\u59cb\u7684\u8def\u4e0a\u5c31\u662f\u5404\u79cd\u66f2\u6298\uff0c\u7f51\u7edc\u95ee\u9898\uff0c\u88c5\u8f7d\u95ee\u9898\uff0c\u7531\u4e8evmware tools\u9700\u8981perl\u73af\u5883\u7684\u652f\u6301\uff0c\u4e8e\u662f\u5b89\u88c5perl\u73af\u5883\u3002\u8fd8\u6ca1\u6709\u6b63\u5f0f\u5f00\u59cb\u5b66\u4e60\u8981\u5b66\u7684\u4e1c\u897f\u5c31\u5df2\u7ecf\u88ab\u73af\u5883\u641e\u5f97\u5f88\u5934\u75bc\uff0c\u603b\u7ed3\u5982\u4e0b<\/p>\n<h4 id=\"\u5b89\u88c5perl\u652f\u6301\">\u5b89\u88c5perl\u652f\u6301<\/h4>\n<p>yum install perl* (yum\u5b89\u88c5perl\u76f8\u5173\u652f\u6301)<br \/>\nyum install cpan (perl\u9700\u8981\u7684\u7a0b\u5e8f\u5e93\uff0c\u9700\u8981cpan\u7684\u652f\u6301\uff0c\u8be6\u7ec6\u81ea\u884c\u767e\u5ea6)<\/p>\n<h4 id=\"\u4e0b\u8f7dperl\u5e76\u5b89\u88c5\">\u4e0b\u8f7dperl\u5e76\u5b89\u88c5<\/h4>\n<p>wget\u00a0<a href=\"http:\/\/www.cpan.org\/src\/5.0\/perl-5.16.1.tar.gz\" target=\"_blank\" rel=\"nofollow noopener\" rel=\"nofollow\" >http:\/\/www.cpan.org\/src\/5.0\/perl-5.16.1.tar.gz<\/a><br \/>\ntar -zxvf perl-5.16.1.tar.gz<br \/>\n.\/Configure -des -Dprefix=\/usr\/local\/perl<\/p>\n<h4 id=\"\u7f16\u8bd1\u5b89\u88c5\">\u7f16\u8bd1\u5b89\u88c5<\/h4>\n<p>make<br \/>\nmake test<br \/>\nmake install<\/p>\n<h4 id=\"\u6ce8\u610f\u4e8b\u9879\">\u6ce8\u610f\u4e8b\u9879<\/h4>\n<p>\u4e00\u4e2a\u5e72\u51c0\u7684centos\u7cfb\u7edf\u662f\u6ca1\u6709\u76f8\u5173\u652f\u6301\u7684\uff0c\u4ee5\u81f3\u4e8e\u5728\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u4f1a\u51fa\u73b0\u5404\u7c7b\u5f02\u5e38\uff0c\u50cf\u662f\u7f16\u8bd1\uff0c\u50cf\u662fwget command not found\u7b49\uff0c\u6574\u4e2amake\u7684\u8fc7\u7a0b\u662f\u65f6\u95f4\u975e\u5e38\u957f\u7684\uff0c\u9700\u8981\u8010\u5fc3\u7b49\u5f85\u3002<\/p>\n<h5 id=\"\u95ee\u98981wget\u4e0d\u88ab\u8bc6\u522b\">\u95ee\u98981\uff1awget\u4e0d\u88ab\u8bc6\u522b<\/h5>\n<p>yum install wget<\/p>\n<h5 id=\"\u95ee\u98982make\u547d\u4ee4\u4e0d\u88ab\u8bc6\u522b\">\u95ee\u98982\uff1amake\u547d\u4ee4\u4e0d\u88ab\u8bc6\u522b<\/h5>\n<p>yum install gcc<br \/>\nreboot<br \/>\n\u518d\u6b21make<br \/>\nperl -v<\/p>\n<h1>\u7b2c\u4e8c\u90e8\u5206\uff0c\u8fd0\u884c17ce\u540e\u9047\u5230\u627e\u4e0d\u5230libbz2.so.1.0<\/h1>\n<p>\u9996\u5148\u770b\u4e00\u4e0b\/usr\/lib64\/\u91cc\u9762\u6709\u6ca1\u6709\uff0c\u6ca1\u6709\u7684\u8bdd\u7f51\u4e0a\u627e\u4e00\u4e2a\u4e0b\u8f7d\u3002\u8fd9\u91cc\u63d0\u4f9b\u4e86\u3002<a href=\"https:\/\/lox.im\/wp-content\/uploads\/2018\/07\/libbz2.so_.1.0.zip\">libbz2.so.1.0<\/a><\/p>\n<p>\u505a\u4e00\u4e2a\u8f6f\u94fe\u63a5libbz2.so.1.0\uff0c\u6307\u5411\u5df2\u7ecf\u6709\u7684libbz2.so.1.0.6<\/p>\n<pre class=\"lang:default decode:true\">[root@username run]# cd \/usr\/lib64\/\r\n[root@username lib64]# ls -alhtr | grep libbz2.so.1\r\n-rwxr-xr-x.  1 root root   67K Nov 20  2015 libbz2.so.1.0.6\r\nlrwxrwxrwx.  1 root root    15 Aug 21 11:59 libbz2.so.1 -&gt; libbz2.so.1.0.6\r\nlrwxrwxrwx.  1 root root    11 Sep  8 12:17 libbz2.so -&gt; libbz2.so.1\r\n[root@username lib64]# ln -s libbz2.so.1.0.6  libbz2.so.1.0 \r\n[root@username lib64]# ls -alhtr | grep libbz2.so.1\r\n-rwxr-xr-x.  1 root root   67K Nov 20  2015 libbz2.so.1.0.6\r\nlrwxrwxrwx.  1 root root    15 Aug 21 11:59 libbz2.so.1 -&gt; libbz2.so.1.0.6\r\nlrwxrwxrwx.  1 root root    11 Sep  8 12:17 libbz2.so -&gt; libbz2.so.1\r\nlrwxrwxrwx.  1 root root    15 Nov  8 01:34 libbz2.so.1.0 -&gt; libbz2.so.1.0.6<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u611f\u8c22zhang6622056\u7684\u4e13\u680f\u53cayangyangrenren\u7684\u4e13\u680f\u7684\u6587\u7ae0\u3002 \u4e3a\u4e86\u5b89\u88c517ce\u7684\u5ba2\u6237\u7aef\uff0c\u9700\u8981\u5b89\u88c5perl\u3002  &#8230;<\/p>\n","protected":false},"author":1,"featured_media":331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[11],"class_list":["post-330","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","tag-11"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":2,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":799,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/330\/revisions\/799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media\/331"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}