Page 1 of 1

Perl module installation

Posted: Sat Feb 12, 2022 2:42 pm
by cah
I got an error when I wtried to install Imager::QRCode from source:

Code: Select all

# perl Makefile.PL
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
Not sure how to get install module in place, I found another way to install perl modules.

Code: Select all

# cpan -i Imager::QRCode
That worked.

It turned out install.pm can be installed the same way.

Code: Select all

cpan -i Module::Install