Installing ActivePerl for Linux


  • Hardware: 200 MB hard disk space for typical install
  • Operating System: Linux distribution using glibc 2.15 or later (e.g. Ubuntu 12.04)
  • Online Help: Web browser
  • Check the LD_LIBRARY_PATH variable and unset any references to Perl & Lib if these are set

Installing ActivePerl on Linux

The installer allows installation as an unprivileged user into a user-specified path. GNU tar is required for extracting the files. See Known Issues in the ActivePerl Release Notes for details.

Warning: Do not use package managers to install ActivePerl as these use a different algorithm and will corrupt the tarball file.

Download the distribution to a temporary directory, extract the files, chdir to the ActivePerl directory and then run the script The installation script will prompt you for the target installation directory.

% tar zxf ActivePerl-
% cd ActivePerl-
% ./

If you share the system with other people, or if you do not have root access, it is recommended that you install ActivePerl in your own user directory. For example:


We suggest adding the following line to your .bash_profile file:


Also, we suggest that you create symbolic links to the binaries:

ln -s /home/<username>/ActivePerl-5.22/bin/perl /home/<username>/bin/perl
ln -s /home/<username>/ActivePerl-5.22/bin/ppm /home/<username>/bin/ppm

This will allow you to call ActivePerl with a command like:

perl -le "Hello World!;"

Linux Configuration

The installer allows you to install the package anywhere that the user has write permission. Add the bin directory to your PATH environment variable to conveniently access it. For example, in the C shell (assuming you installed into /home/<username>/ActivePerl-5.22):

% setenv PATH /home/<username>/ActivePerl-5.22/bin:$PATH

Uninstalling ActivePerl on Linux

If you installed ActivePerl using the AS format installer, remove the directory into which ActivePerl was installed. For example:

/bin/rm -rf /opt/ActivePerl-5.22