Installing Perl
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the cd command to go to the directory where the installation package is saved.
- Decompress the installation package.
tar -zxvf perl-5.34.0.tar.gz
- Go to the directory generated after the decompression.
cd perl-5.34.0
- Perform the compilation and installation.
./Configure -des -Dprefix=/path/to/perl/perl-5.34.0/ -Dusethreads -Uinstalluserbinperl -Dcc=gcc make make test make install
- 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
- Check whether the installation is successful.
perl -version
If the correct version information is displayed, the installation is successful.
Parent topic: Configuring the Compilation Environment