Perl Installation on Unix and Linux Platform


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

  • Open a Web browser and go to  https://www.perl.org/get.html.

  • Follow the link to download the zipped source code available for Unix/Linux.

  • Download the perl-5.x.y.tar.gz file and issue the following commands at $ prompt.

$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: 28-Nov-2019

776 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements