Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-04-2007, 04:01 AM   #1
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
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)
Old 10-04-2007, 04:11 AM   #2
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl install error: Can't locate object method "new" via package "Module::Build::Vers powah Linux - Software 0 10-24-2006 02:57 PM
Can't Locate Module wlan0 mattp Linux - Laptop and Netbook 34 02-28-2005 11:16 AM
Can't locate module cdrom cparx Linux - Newbie 4 04-20-2004 05:56 PM
Cant locate kernel-source to build my Nvidia driver nyhm Linux - Software 3 02-16-2004 05:48 PM
can't locate module in @INC john lee Programming 1 06-05-2002 11:12 AM

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration