Install Perl from ActiveState on Ubuntu machine
I prefer ActiveState download for a beginner to have a Perl installation with compiled libraries for immediate execution of various Perl programs. You can grab a copy based on your OS from
Download the x86 .deb file for easy installation of ActivePerl on Ubuntu. If you have downloaded it to your /tmp location then you can unpackage the download by executing the below command
$ sudo dpkg -i /tmp/name-of-active-perl.deb
Normally it gets installed in the directory /opt. You can move the directory to the location of your choice.
Check your path settings by
$ echo $PATH
If there were previous installation of perl, you need to modify the path setting so that the setting to ActivePerl location comes prior to all other perl locations.
Task: List installed perl module
To display the list enter the following command:
How to set Perl path for libraries?
Note that the path separator here is “:” (semi-colon)
There might be a possibility that an edit of .bashrc file may become corrupted. If it happened to you, then you may not be able to execute most of the commands on linux prompt.
The solution for it is to reset the path settings in order for bash file to identify what the commands are in that shell.
Execute the below command to reset Ubuntu path settings
Ensure that there is no “space” around equal to sign in the path settings.
Visit activestate.com website to get more installation related info