簡(jiǎn)介
Perl,一種功能豐富的計(jì)算機(jī)程序語(yǔ)言,運(yùn)行在超過(guò)100種計(jì)算機(jī)平臺(tái)上,適用廣泛,從大型機(jī)到便攜設(shè)備,從快速原型創(chuàng)建到大規(guī)??蓴U(kuò)展開(kāi)發(fā)。
Perl 語(yǔ)言的應(yīng)用范圍很廣,除CGI以外,Perl被用于圖形編程、系統(tǒng)管理、網(wǎng)絡(luò)編程、金融、生物以及其他領(lǐng)域。
本文選用華為鯤鵬云服務(wù)ECS KC1實(shí)例做測(cè)試,KC1實(shí)例的處理器為兼容ARMv8指令集的鯤鵬920。
1.操作系統(tǒng)選擇
使用的操作系統(tǒng)為Euler 2.8,內(nèi)核版本號(hào)為:4.19.36。
2.獲取源代碼
perl官網(wǎng)(https://www.perl.org/)提供perl的源代碼壓縮包,可以直接下載,各版本的列表可以通過(guò):https://www.cpan.org/src/README.html獲取。
3.編譯源代碼
本文以perl-5.28.0為例,下載perl-5.28.0源碼,并編譯安裝。
wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz
tar -zxvf perl-5.28.0.tar.gz
cd perl-5.28.0
./configure.gnu -de
make -j4
make test
make install
?4.測(cè)試已完成編譯的軟件
查看perl版本。
[root@ecs-1-0002 ~]# perl -v
This is perl 5, version 28, subversion 0 (v5.28.0) built for aarch64-linux
Copyright 1987-2018, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.