How can I install new Perl without damaging the installation of the system?

I've seen a lot of people mention some of the new cool features in Perl> = 5.12, but my preferred flavor of Linux Ubuntu comes with only 5.10.1.

I am not afraid of PPA, and I know how google (if someone does not find me something, then I will feel shy). I can not find the person who provides Perl PPA; I thought there was a PPA for everything!

My further fear is that since Linux-based systems are used perlas part of their packaging and other systems, I don’t necessarily want to assemble / install it myself, for fear of disrupting the OS.

Can someone give me some tips on the easiest, albeit safe way to update / parallel install the latest versions of Perl?

  • Can I specify multiple binaries so as not to affect system utilities?
  • How do modules work if multiple versions of Perl are installed?
+3
source share
3 answers

I would recommend taking a look at the excellent perlbrew available from CPAN, which allows you to locally install and manage multiple versions of perl.

+7
source

, dist perl, . perl. - , perls, , a/opt, .

+1

What I do, compile your own perl and install it in /opt/perl. Then add export PATH=/opt/perl/bin:$PATHto mine .bashrc. This way the perl system remains intact, and I have the last perl for the game. :-)

0
source

Source: https://habr.com/ru/post/1771094/


All Articles