【軟通鯤鵬云最佳實踐31】Perl-5.28 鯤鵬云服務器安裝實踐
一、?軟件介紹
Perl,一種功能豐富的計算機程序語言,運行在超過100種計算機平臺上,適用廣泛,從大型機到便攜設(shè)備,從快速原型創(chuàng)建到大規(guī)模可擴展開發(fā)。
Perl?語言的應用范圍很廣,除CGI以外,Perl被用于圖形編程、系統(tǒng)管理、網(wǎng)絡編程、金融、生物以及其他領(lǐng)域。
二、?支持的操作系統(tǒng)
經(jīng)過華為云嚴格實測,以下操作系統(tǒng)在鯤鵬生態(tài)中可以完整運行Openjdk的全部功能:
CentOS7.6
下載perl-5.28.0版本,執(zhí)行如下命令:
wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz
四、?編譯與測試環(huán)境
本文選用華為鯤鵬云服務器ECS KC1實例做測試,KC1實例的處理器為兼容ARMv8指令集的鯤鵬920。詳細規(guī)格如下:
類別
子項
版本
云主機配置
ECS實例類型
kc1.large.4
ECS配置
4U16GB
EVS
高IO(80GB)
云OS
Kernel
4.18.0
五、?編譯安裝與測試
1?依賴安裝
需要C編譯器,安裝命令:yum install gcc -y
2?編譯安裝
1)?解壓安裝包并安裝,執(zhí)行如下命令:
#?tar?-zxvf?perl-5.28.0.tar.gz #?cd?perl-5.28.0 #?./configure.gnu?-de #?make?-j4? #?make?test #?make?install
3?驗證測試
1)?輸入命令perl -v,返回結(jié)果類似如下圖:
4?問題總結(jié)
安裝過程中如果出現(xiàn)如下錯誤:
#??./configure.gnu?-de sh?Configure?-ds?-e?-de First?let's?make?sure?your?kit?is?complete.??Checking... Locating?common?programs... Checking?compatibility?between?/usr/bin/echo?and?builtin?echo?(if?any)... Symbolic?links?are?supported. Checking?how?to?test?for?symbolic?links... You?can?test?for?symbolic?links?with?'test?-h'. Checking?for?cross-compile No?targethost?for?running?compiler?tests?against?defined,?running?locally Good,?your?tr?supports?[:lower:]?and?[:upper:]?to?convert?case. Using?[:upper:]?and?[:lower:]?to?convert?case. aix_3?????????dragonfly???????irix_5?????openbsd???????sunos_4_1??? aix_4?????????dynixptx????????irix_6_0????opus??????????super-ux??? aix??????????dynix??????????irix_6_1????os2??????????svr4??? altos486??????epix??????????irix_6?????os390?????????svr5??? amigaos???????esix4??????????isc_2?????os400?????????ti1500??? atheos????????fps??????????isc?????posix-bc??????ultrix_4??? aux_3?????????freebsd?????????linux-android????qnx??????????umips??? bitrig????????freemint????????linux?????riscos????????unicosmk??? bsdos?????????gnukfreebsd?????lynxos?????sco_2_3_0?????unicos??? catamount?????gnuknetbsd??????midnightbsd????sco_2_3_1?????unisysdynix??? convexos??????gnu??????????mips?????sco_2_3_2?????utekv??? cxux??????????greenhills??????mirbsd?????sco_2_3_3?????uwin??? cygwin????????haiku??????????mpc?????sco_2_3_4?????vos??? darwin????????hpux??????????ncr_tower????sco??? dcosx?????????i386??????????netbsd?????solaris_2??? dec_osf???????interix?????????newsos4????stellar??? dos_djgpp?????irix_4??????????nonstopux????sunos_4_0??? Which?of?these?apply,?if?any??[linux]?? Operating?system?name??[linux]?? Operating?system?version??[4.18.0-80.7.2.el7.aarch64]?? Installation?prefix?to?use??(~name?ok)?[/usr/local]?? AFS?does?not?seem?to?be?running... What?installation?prefix?should?I?use?for?installing?files??(~name?ok) [/usr/local]?? Getting?the?current?patchlevel... Build?a?threading?Perl??[n]?? Build?Perl?for?multiplicity??[n]?? Use?which?C?compiler??[cc]?? ./trygcc:?line?10:?cc:?command?not?found Uh-oh,?the?C?compiler?'cc'?doesn't?seem?to?be?working. You?seem?to?have?a?working?gcc,?though. ? ***?However,?any?setting?of?the?C?compiler?flags?(e.g.?for?thread?support) ***?will?be?lost.??It?may?be?necessary?for?you?to?restart?Configure?and ***?add?-Dcc=gcc?to?your?Configure?command?line. ? Would?you?like?to?go?ahead?and?try?gcc?anyway??[n]?? ./checkcc:?line?10:?cc:?command?not?found Uh-oh,?the?C?compiler?'cc'?doesn't?seem?to?be?working. You?need?to?find?a?working?C?compiler. Either?(purchase?and)?install?the?C?compiler?supplied?by?your?OS?vendor, or?for?a?free?C?compiler?try?http://gcc.gnu.org/ I?cannot?continue?any?further,?aborting.
則需要安裝如下命令:
yum?install?gcc?-y
六、?聲明
本文檔中的軟件包均來自軟件官網(wǎng),安裝文檔部分參考官網(wǎng)的安裝方法,本軟件測試環(huán)境為華為鯤鵬云ARM服務器,具體配置信息參照《編譯與測試環(huán)境》部分。
本文檔中的軟件安裝測試基于華為鯤鵬云ARM服務器環(huán)境測試,如在使用本文檔的安裝方法進行安裝過程中,可能由于系統(tǒng)版本、軟件依賴或其他原因造成軟件安裝不成功,請自行解決或聯(lián)系我們,請事先備份相關(guān)重要數(shù)據(jù)、資料。
使用文檔風險由用戶自行承擔,在適用法律允許的最大范圍內(nèi),對因使用或不能使用本文檔所產(chǎn)生的損害及風險,包括但不限于直接或間接的個人損害、商業(yè)贏利的喪失、貿(mào)易中斷、商業(yè)信息的丟失或任何其它經(jīng)濟損失,我司不承擔任何責任。
我司不擔保所提供的軟件功能及服務一定能滿足用戶的要求,也不擔保服務不會中斷,對服務的及時性、安全性、真實性、準確性都不作擔保。
鯤鵬
版權(quán)聲明:本文內(nèi)容由網(wǎng)絡用戶投稿,版權(quán)歸原作者所有,本站不擁有其著作權(quán),亦不承擔相應法律責任。如果您發(fā)現(xiàn)本站中有涉嫌抄襲或描述失實的內(nèi)容,請聯(lián)系我們jiasou666@gmail.com 處理,核實后本網(wǎng)站將在24小時內(nèi)刪除侵權(quán)內(nèi)容。