How to upgrade to perl 5.10.1?

I have a lot of problems with perl modules requiring perl(:MODULE_COMPAT_5.10.1):

Error: Package: perl-Class-MOP-1.12-1.el6.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)
Error: Package: perl-Moose-1.15-1.el6.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)

The installed version of perl is 5.16.3, OS is the version AMA701 AMI version 2014.03, and I would really like to upgrade to perl 5.10.1 so that the compatibility issues are fixed. How to do it?

This happens, in particular, when I try to install perl-Net-Amazon-EC2, this is what yum list shows:

perl-Net-Amazon-EC2.noarch 0.14-2.el6 epel

So this comes from epel and here is the corresponding section of the repo file:

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

It seems that the version in the repo is 0.14, and the last one is 0.24 (I tried to install it manually, but this did not work, and in no way do I want to install manually for all packages)

+4
source share
1 answer

- Perlbrew. Linux/Unix BASH. Zsh Kornshell, . Windows, ... .

Perlbrew Perl Perls. root Perl. CPAN Perlbrew Perl. Perl . Perl - 5.16, 5.18, 5.10, 5.12 5.8.9, Perl, RHEL.

Perl , :

$ perlbrew use 5.10   # Use this version in the current shell

$ perlbrew switch 5.10  # This is now your default version of Perl

Perl:

$ perlbrew install 5.10  # I'm installing Perl 5.10!

Perlbrew $PATH Perl, shebang. Perl /usr/bin/perl. Perl:

#! /usr/bin/env perl

, Perl.

+10

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


All Articles