cpan : command not found on Redhat 9

171 Views Asked by At

I want to compile Qt5 on RedHat 9, and when I run the ./configure command, I get the following message:

Can't locate English.pm in @INC (you may need to install the English module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/nekcorp/Downloads/qt5/qtbase/bin/syncqt.pl line 55. BEGIN failed--compilation aborted at /home/user/Downloads/qt5/qtbase/bin/syncqt.pl line 55.

So, I tried to install English.pm with cpan, but when I run the cpan command, I get the message:

command not found.

I then tried to install it with yum install perl-CPAN, but I received the following message:

No match for argument: perl-CPAN Error: Unable to find a match: perl-CPAN.

Normally, isn't cpan included with perl during its installation?

Note: I have Perl version 5, version 32, subversion 1 (v5.32.1) installed on RedHat 9.2.

1

There are 1 best solutions below

4
Dave Cross On

I don't have access to a Centos/RHEL 9 box to try this out on, but on Centos 8 the fix to get a complete Perl installation was always:

sudo yum install perl-core