Perl Installation on Unix and Linux Platform



Here are the simple steps to install Perl on Unix/Linux machine.

$tar -xzf perl-5.x.y.tar.gz
$cd perl-5.x.y
$./Configure -de
$make
$make test
$make install

NOTE − Here $ is a Unix prompt where you type your command, so make sure you are not typing $ while typing the above-mentioned commands.

This will install Perl in a standard location /usr/local/bin and its libraries are installed in /usr/local/lib/perlXX, where XX is the version of Perl that you are using.

It will take a while to compile the source code after issuing the make command. Once the installation is done, you can issue Perl -v command at $ prompt to check Perl installation. If everything is fine, then it will display a message as we have shown above.

Updated on: 2019-11-28T07:08:25+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements