Centos – Issue with perl -MCPAN -e ‘install Module::Build’;

centosperl

While doing the perl -MCPAN -e 'install Module::Build'; it gives the following error, How can I resolve it ?

/usr/bin/perl Build --makefile_env_macros 1
Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled lib /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at lib/Module/Build.pm line 13.

Best Answer

Can't locate Perl/OSType.pm in @INC

Open the Build.pm file, you will see something like this:

use Perl::OSType ();

and this module isn't installed. So, try this:

# yum install perl-Perl-OSType.noarch
Related Topic