Linux下安装Perl 5

在安装openssl时需要安装Perl5,否则报一下错误。

Operating system: x86_64-whatever-linux2 You need Perl 5.

需要有gcc环境

安装Perl 5的执行步骤为:

####需要安装 perl-5https://www.cpan.org/src/README.html
wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz
tar -xzf perl-5.28.0.tar.gz

cd perl-5.28.0

./Configure -des -Dprefix=$HOME/localperl

 

make
make test
make install

 

完整步骤

tar -xzf perl-5.28.0.tar.gz

cd perl-5.28.0

./Configure -des -Dprefix=$HOME/localperl

make
make test
make install

 

posted @ 2024-01-18 10:53  我出必行  阅读(1175)  评论(0)    收藏  举报