Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Perl

Procedure

  1. Download the installation package.
    cd /path/to
    wget https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
  2. Decompress the installation package and perform the installation.
    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
  3. Set the environment variables.
    export PATH=/path/to/perl/bin:$PATH
    export PERL5LIB=/path/to/perl/lib/site_perl/5.34.0
  4. Configure the Perl source.
    cpan
    o conf urllist unshift http://mirrors.163.com/cpan/
    o conf commit
    quit

    If the following information is displayed, the configuration is successful.