zoukankan      html  css  js  c++  java
  • 【Perl】Linux下安装Perl

    方法一

    使用如下命令进行安装:
    [root@strong ~]# curl -L http://xrl.us/installperlnix | bash
    方法二

    1、下载Perl压缩包;
    [root@strong ~]# wget http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz
    --2018-03-09 19:18:55--  http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz
    Resolving www.cpan.org (www.cpan.org)... 151.101.230.49, 2a04:4e42:36::561
    Connecting to www.cpan.org (www.cpan.org)|151.101.230.49|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 16939588 (16M) [application/x-gzip]
    Saving to: ‘perl-5.26.1.tar.gz’
    
    100%[==================================================================================================================================>] 16,939,588   213KB/s   in 87s    
    
    2018-03-09 19:20:23 (191 KB/s) - ‘perl-5.26.1.tar.gz’ saved [16939588/16939588]
    2、解压缩至相应目录;
    [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
    3、测试安装结果;
    [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]# 
    4、使用perl写第一个程序;
    [root@strong perl-5.26.1]# perl -e 'print "Hello World ! 
    "';
    Hello World !



  • 相关阅读:
    基于项目中遇到的技术问题,谈谈SharedPreferences的使用的注意问题
    mongodb数据库从库同步主库维护js脚本
    MongoDB数据库日志备份压缩脚本
    mongodb数据库磁盘碎片整理。
    mongodb表字段处理生成域名字段
    根据当前进程号,获取进程下线程数目
    mongodb mapreduce示例
    MongoDB数据库库级锁研究分析
    mongodb库表信息监控脚本
    利用JAVA设计一个可视化日历
  • 原文地址:https://www.cnblogs.com/alen-liu-sz/p/12975681.html
Copyright © 2011-2022 走看看