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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南