Perl Source Based Installation

Perl Source Based Installation


Sometimes we get request to install Perl’s new version along with default OS Perl version (which was installed by RPM). In this case we need to install Perl by building it from the source code as below:-

1.     Download required Perl version from below link.

2.     Follow below steps to perform installation :
[root]# cd /tmp
tar -xzf perl-5.10.1.tar.gz
      [root]# cd perl-5.10.1
[root]#./Configure -des -Dprefix=/usr/local/perl5.10  <-- desired path will be    here
[root]# make
[root]# make test
[root]# make install

3.     After installation we can see new Perl location as below :-
[root ]# whereis perl
perl: /usr/bin/perl  /usr/local/bin/perl  /usr/local/perl5.10 

Now ask user to use new Perl path in their scripts/work instead of default Perl path which is /usr/bin/perl.

Comments

Popular posts from this blog

HP-UX virtual Machine Cheat Sheet

How to run fdisk in non-interactive mode