Install ActiveState Perl on Ubuntu

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

http://www.activestate.com/activeperl/downloads/

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:
$ instmodsh

How to set Perl path for libraries?

export PATH=$PATH:/home/YourUserName/bin

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

$export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Ensure that there is no “space” around equal to sign in the path settings.

Visit activestate.com website to get more installation related info
http://docs.activestate.com/activeperl/5.10/install.html

Share it onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Written by kurinchilamp


Website: http://

Leave a Reply

Your email address will not be published. Required fields are marked *

Read previous post:
Network Time Protocol – NTP in Ubuntu

Network Time Protocol - NTP in Ubuntu NTP is a TCP/IP protocol which helps synchronising time over a network. A...

Close