Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.
share|improve this question
add comment

2 Answers

up vote 1 down vote accepted
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
share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.