Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.
share|improve this question
up vote 1 down vote accepted
Can't locate Perl/ in @INC

Open the 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
share|improve this 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.

share|improve this answer
x2 - Using the package management for modules is definitely easier over time. CPAN is great, but life will be easier if you handle versions and upgrades in a single place. – rnxrx Aug 1 '12 at 6:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.