码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下安装Perl

时间:2018-08-15 00:35:28      阅读:378      评论:0      收藏:0      [点我收藏+]

标签:list   either   lin   The   lis   browser   internet   intern   linux   

[root@strong ~]# wget http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz

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

测试安装结果:

[root@strong 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.

[root@strong perl-5.26.1]#

使用perl写第一个程序:

[root@strong perl-5.26.1]# perl -e ‘print "Hello World ! \n"‘;
Hello World !

 

Linux下安装Perl

标签:list   either   lin   The   lis   browser   internet   intern   linux   

原文地址:https://www.cnblogs.com/winfosy/p/9478970.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!