Linux下安装Perl

Posted 无道

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下安装Perl相关的知识,希望对你有一定的参考价值。

[[email protected] ~]# wget http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz

[[email protected] perl-5.26.1]# cd /usr/local/
[[email protected] perl-5.26.1]# tar zxvf /root/perl-5.26.1.tar.gz
[[email protected] local]# cd perl-5.26.1/
[[email protected] perl-5.26.1]# ./Configure -de
[[email protected] perl-5.26.1]# make
[[email protected] perl-5.26.1]# make test
[[email protected] perl-5.26.1]# make install

测试安装结果:

[[email protected] perl-5.26.1]# perl -v

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux

Copyright 1987-2017, 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.

[[email protected] perl-5.26.1]#

使用perl写第一个程序:

[[email protected] perl-5.26.1]# perl -e ‘print "Hello World ! "‘;
Hello World !

 





















以上是关于Linux下安装Perl的主要内容,如果未能解决你的问题,请参考以下文章

Linux下安装Perl

linux 下安装rpm文件包时,提示perl(***::****::***) is needed by *****

Linux下安装PHP,APACHE,MYSQL,PERL方法

Nginx Linux下安装

Nginx Linux下安装

Nginx Linux下安装