Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Perl

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the cd command to go to the directory where the installation package is saved.
  3. Decompress the installation package.
    tar -zxvf perl-5.34.0.tar.gz
  4. Go to the directory generated after the decompression.
    cd perl-5.34.0
  5. Perform the compilation and installation.
    ./Configure -des -Dprefix=/path/to/perl/perl-5.34.0/ -Dusethreads -Uinstalluserbinperl -Dcc=gcc
    make
    make test
    make install
  6. Update the environment variables.
    export PERL5LIB=/path/to/perl/perl-5.34.0/lib
    export PATH=/path/to/perl/perl-5.34.0/bin:$PATH
  7. Check whether the installation is successful.
    perl -version

    If the correct version information is displayed, the installation is successful.