-   Linux - Software (
-   -   Can't locate Module/ in @INC ( 10-04-2007 04:01 AM

Can't locate Module/ in @INC

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

~ # perl Build.PL
Can't locate Module/ 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/ 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.

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

Su-Shee 10-04-2007 04: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.



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 03:59 PM.