软通鲲鹏云最佳实践31】Perl-5.28 鲲鹏云服务器安装实践

网友投稿 995 2022-05-29

一、 软件介绍

Perl,一种功能丰富的计算机程序语言,运行在超过100种计算机平台上,适用广泛,从大型机到便携设备,从快速原型创建到大规模可扩展开发。

Perl 语言的应用范围很广,除CGI以外,Perl被用于图形编程、系统管理、网络编程、金融、生物以及其他领域。

【软通鲲鹏云最佳实践31】Perl-5.28 鲲鹏云服务器安装实践

二、 支持的操作系统

经过华为云严格实测,以下操作系统在鲲鹏生态中可以完整运行Openjdk的全部功能:

CentOS7.6

下载perl-5.28.0版本,执行如下命令:

wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz

四、 编译与测试环境

本文选用华为鲲鹏云服务器ECS KC1实例做测试,KC1实例的处理器为兼容ARMv8指令集的鲲鹏920。详细规格如下:

类别

子项

版本

云主机配置

ECS实例类型

kc1.large.4

ECS配置

4U16GB

EVS

高IO(80GB)

云OS

Kernel

4.18.0

五、 编译安装与测试

1 依赖安装

需要C编译器,安装命令:yum install gcc -y

2 编译安装

1) 解压安装包并安装,执行如下命令:

# 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,返回结果类似如下图:

4 问题总结

安装过程中如果出现如下错误:

#  ./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

六、 声明

本文档中的软件包均来自软件官网,安装文档部分参考官网的安装方法,本软件测试环境为华为鲲鹏云ARM服务器,具体配置信息参照《编译与测试环境》部分。

本文档中的软件安装测试基于华为鲲鹏云ARM服务器环境测试,如在使用本文档的安装方法进行安装过程中,可能由于系统版本、软件依赖或其他原因造成软件安装不成功,请自行解决或联系我们,请事先备份相关重要数据、资料。

使用文档风险由用户自行承担,在适用法律允许的最大范围内,对因使用或不能使用本文档所产生的损害及风险,包括但不限于直接或间接的个人损害、商业赢利的丧失、贸易中断、商业信息的丢失或任何其它经济损失,我司不承担任何责任。

我司不担保所提供的软件功能及服务一定能满足用户的要求,也不担保服务不会中断,对服务的及时性、安全性、真实性、准确性都不作担保。

鲲鹏

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Linux进和创建——写时拷贝机制
下一篇:开发教程 | 基于ModelArts与HiLens端云协同开发行人检测与跟踪方案
相关文章