编译安装perl
完全编译安装perl,及其模块。
在rhel6.5上做的测试,但是个人感觉在centos7上也是可行的。
安装包下载:
注意:需要把安装包解压放到/opt目录下,给脚本添加执行权限。
#!/bin/bash
# the script to install perl, YAML, YAML::XS, YAML::Syck, YAML::Tiny, YAML::Active, IO::YAML, Config::YAML
# date: 2018-8-3
# version 1.2
# by hy
# install perl 5.28
cd /opt/perl/tar_install/tar
tar xf perl-5.28.0.tar.gz
cd perl-5.28.0
./configure.gnu –prefix=/usr/local/perl
make && make install
mv /usr/bin/perl /usr/bin/perl.old
ln /usr/local/perl/bin/perl /usr/bin/perl
tar xf Test-Deep-1.128.tar.gz
cd Test-Deep-1.128
perl Makefile.PL
make && make install
tar xf Algorithm-Diff-1.1903.tar.gz
cd Algorithm-Diff-1.1903
perl Makefile.PL
make && make install
tar xf Spiffy-0.46.tar.gz
cd Spiffy-0.46
perl Makefile.PL
make && make install
tar xf tar -xf Text-Diff-1.45.tar.gz
cd tar -xf Text-Diff-1.45
perl Makefile.PL
make && make install
tar xf Test-Base-0.89.tar.gz
cd Test-Base-0.89
perl Makefile.PL
make && make install
tar xf Test-YAML-1.07.tar.gz
cd Test-YAML-1.07
perl Makefile.PL
make && make install
tar xf YAML-1.26.tar.gz
cd YAML-1.26
perl Makefile.PL
make && make install
tar xf YAML-LibYAML-0.72.tar.gz
cd YAML-LibYAML-0.72
perl Makefile.PL
make && make install
tar xf YAML-Syck-1.30.tar.gz
cd YAML-Syck-1.30
perl Makefile.PL
make && make install
tar xf YAML-Tiny-1.73.tar.gz
cd YAML-Tiny-1.73
perl Makefile.PL
make && make install
tar xf Class-Accessor-0.51.tar.gz
cd Class-Accessor-0.51
perl Makefile.PL
make && make install
tar xf Sub-Name-0.21.tar.gz
cd Sub-Name-0.21
perl Makefile.PL
make && make install
UNIVERSAL::require
tar xf UNIVERSAL-require-0.18.tar.gz
cd UNIVERSAL-require-0.18
perl Makefile.PL
make && make install
tar xf Class-Accessor-Installer-1.100880.tar.gz
cd Class-Accessor-Installer-1.100880
perl Makefile.PL
make && make install
tar xf Data-Miscellany-1.100850.tar.gz
cd Data-Miscellany-1.100850
perl Makefile.PL
make && make install
tar xf Exporter-Tiny-1.002001.tar.gz
cd Exporter-Tiny-1.002001
perl Makefile.PL
make && make install
tar xf List-MoreUtils-XS-0.428.tar.gz
cd List-MoreUtils-XS-0.428
perl Makefile.PL
make && make install
tar xf List-MoreUtils-0.428.tar.gz
cd List-MoreUtils-0.428
perl Makefile.PL
make && make install
tar xf Class-Accessor-Complex-1.100880.tar.gz
cd Class-Accessor-Complex-1.100880
perl Makefile.PL
make && make install
tar xf YAML-Active-1.100810.tar.gz
cd YAML-Active-1.100810
perl Makefile.PL
make && make install
tar xf IO-stringy-2.111.tar.gz
cd IO-stringy-2.111
perl Makefile.PL
make && make install
tar xf IO-YAML-0.10.tar.gz
cd IO-YAML-0.10
perl Makefile.PL
make && make install
tar xf Config-YAML-1.42.tar.gz
cd Config-YAML-1.42
perl Makefile.PL
make && make install
# test
perl -v
转载自:https://blog.csdn.net/qq_34889607/article/details/81514043