apt-get Perl 5.18.2 in debian:wheezy with threading support

2.4k views Asked by At

I'm trying to install perl 5.18.2 with threading support in ubuntu using apt-get (binary installation, not from source)

Basically, the equivalent of the following perlbrew-based installation

perlbrew install -v perl-5.18.2 -Dusethreads -n --as perl-5.18.2_WITH_THREADS

in apt-get method:

sudo apt-get install perl perl-base

But the above apt-get command installs an older version and has no way to get perl compiled with threading support. Is there a PPA hosting perl 5.18.2 compiled with threads binary? If so, what is the apt-get command to install from it?

1

There are 1 answers

2
AudioBubble On BEST ANSWER

No, this isn't possible.

Debian uses Perl internally for a number of system management tasks — it's a critical system component. As the Perl ABI changes between major versions, and all of the Perl modules in Debian are compiled against the version of Perl that was supplied with that release, you can't safely replace the system Perl with another version. Trying to do so will result in a completely broken system.

If you want a different Perl version than the one that came with the Debian release you're using, you'll need to install it to an alternate location (e.g, using perlbrew), or use another Debian release and/or distribution.