cd /path/to wget https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
tar xvf perl-5.34.0.tar.gz cd perl-5.34.0 ./Configure -des -Dprefix=/path/to/perl -Dusethreads -Uinstalluserbinperl -Dcc=gcc make make test make install
export PATH=/path/to/perl/bin:$PATH export PERL5LIB=/path/to/perl/lib/site_perl/5.34.0
cpan o conf urllist unshift http://mirrors.163.com/cpan/ o conf commit quit
结果回显如下,出现图中信息则为配置成功。