LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't locate Module/Build.pm in @INC (http://www.linuxquestions.org/questions/linux-software-2/cant-locate-module-build-pm-in-%40inc-589321/)

i.you 10-04-2007 03:01 AM

Can't locate Module/Build.pm in @INC
 
Hi

I'm installing "po4a" and met the following error.

~ # perl Build.PL
Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/armv5tejl-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/armv5tejl-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .). at Build.PL line 3.

So I surveyed it and I think this is because Module::Build is not installed.
Perl is installed. I ran this:

~ # perl -MModule::Build -e 'print "installed!\n"'
Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/armv5tejl-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/armv5tejl-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .).

I think something is missing in Perl packages.
Please let me know how to solve it.

P.S.
Distro : Not debian nor fedora nor any distro. (so I cannot use the package manager like apt or rpm)
CPU : ARM9

Su-Shee 10-04-2007 03:11 AM

Perl's got its own -very nice - mechanism of installing new modules.

Open a CPAN shell and there you can just type "install Blabla" and there you go.

Specifically:

call:

perl -MCPAN -e shell;

and than, you're in the CPAN shell which connects to the module archive server CPAN and fetches all the stuff you need.

Just do

install TheModuleYouWant

Sometimes it asks for resolving dependencies - I recommend to follow them.

Sometimes a Module fails a test or the make process, because you have to install something else first - read all messages carefully.


All times are GMT -5. The time now is 07:49 AM.