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.

已提问 2 年前292 查看次数
1 回答
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
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则