469,315 Members | 2,012 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

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

4
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
Oct 4 '07 #1
3 29368
First check whether your Module is properly installed or not by command,

perl -e 'print "$Module::Build::Version";' (check the format of command)

If yes, try to find out where Module/Build.pm is getting created. If it is getting created on one of the paths provided in @INC then you should not get this error. If your module is getting created at other location then you can include that path in @INC by using "-I" command line option.

e.g.: perl -I /home/rahateka print.pl
Oct 4 '07 #2
numberwhun
3,503 Expert Mod 2GB
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
Well, since you seem to need the module, why not do this:

Expand|Select|Wrap|Line Numbers
  1. perl -MCPAN -e 'install Module::Build';
  2.  
Regards,

Jeff
Oct 4 '07 #3
you
4
Thanks a lot rahatekarabhijeet and Jeff

very helpful!
Oct 5 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by pptran | last post: by
1 post views Thread by bg_ie | last post: by
1 post views Thread by krsna | last post: by
5 posts views Thread by eranshuman | last post: by
10 posts views Thread by zcabeli | last post: by
1 post views Thread by tsajuc | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.