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.

demandé il y a 2 ans292 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions