1.2 Linux环境安装Perl

Linux (开发环境+运行环境):需要安装Perl(系统自带)vim

视频:https://www.bilibili.com/video/av94680934

CentOS搭建:http://wuxiaolong.tech/?p=191

Perl下载:https://www.cpan.org/src/

SecureCRT的安装使用参考视频:https://www.bilibili.com/video/av88396154

1.2 Linux环境安装Perl

安装vim:

[[email protected] bin]# yun install -y vim

升级Perl版本:

系统安装后,查看centos自带的perl

1.2 Linux环境安装Perl

卸载自带的perl

[[email protected] opt]# yum remove perl -y

1.2 Linux环境安装Perl

下载安装新版本perl

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

[[email protected] ~]# tar -xzf perl-5.30.1.tar.gz

[[email protected] ~]# cd -xzf perl-5.30.1

[[email protected] perl-5.30.1]# yum install -y gcc*

[[email protected] perl-5.30.1]# ./Configure           ##中间提示一直按回车

[[email protected] ~]# make

[[email protected] ~]# make test

[[email protected] ~]# make install

修改环境变量

找到刚才安装的默认路径:

[[email protected] bin]# ll /usr/local/bin/

1.2 Linux环境安装Perl

[[email protected] bin]# vim /etc/profile

在最后面添加:export PATH=/usr/local/bin:$PATH

1.2 Linux环境安装Perl

[[email protected] bin]# source /etc/profile

测试

1.2 Linux环境安装Perl

 

1.2 Linux环境安装Perl