华为云计算 云知识 什么是Perl
什么是Perl

简介

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

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

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

1.操作系统选择

使用的操作系统为Euler 2.8,内核版本号为:4.19.36。

2.获取源代码

perl官网(https://www.perl.org/)提供perl的源代码压缩包,可以直接下载,各版本的列表可以通过: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.测试已完成编译的软件

查看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.

 

上一篇:IAM中的身份凭证 下一篇:网络ACL