Perl version incompatibility

0

On executing perl application it throws error. Encode version 2.87 required--this is only version 2.51 at /usr/local/share/perl5/Email/MIME/ContentType.pm line 7 How to upgrade Perl-Encode module to 2.87? on Amazon Linux 2

  • Could you provide more information about where you're executing this? Is it an EC2 instance? What operating system? What operating system version? More importantly: What are you trying to do? You might also search the Perl archives for how to upgrade libraries.

  • Yes I was trying to install a perl application on EC2 instance but when I try to yum update perl I get the following error amzn2-core | 3.7 kB 00:00:00 281 packages excluded due to repository priority protections No packages marked for update

    Even when I try to force update it throws up error even when set down to a specific version! Any help truly appreciated.

asked 2 years ago282 views
1 Answer
0

As with most Linux-based operating systems, there are thousands (maybe millions!) of libraries out there that are not going to be the right version that you require for your application. It's not possible to build a distribution that has the latest "everything"; and that doesn't include cases where might want an earlier library for compatibility reasons.

I'd suggest using CPAN to install the Perl dependencies that you require.

profile pictureAWS
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions