Issue with perl -MCPAN -e 'install Module::Build';

Ahn asked:

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/ 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/ line 13.

My answer:

What’s wrong with using the module provided by CentOS?

yum install perl-Module-Build

Come to think of it, the perl module that you really want (you didn’t specify what it is) is probably already in the repositories, too.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.