[Omaha.pm] @INC oughta be @ICK!!

Jay Hannah jay at jays.net
Thu Dec 9 15:20:28 CST 2004


Hmm... That's weird. There's several ways to manipulate @INC, many of 
them documented in "perldoc perlrun" (which you can't currently access 
-grin-).

Your @INC includes

   /usr/lib/perl5/5.8.0/i386-linux-thread-multi

and your locate shows you do have a

   /usr/lib/perl5/5.8.0/i386-linux-thread-multi/File/Spec/Unix.pm

so I don't understand why it wouldn't be able to find File::Spec::Unix. 
Do the permissions on those files/directories look screwy?

As a general rule you can't/shouldn't run perldoc as root. Can you run 
that perldoc command as a regular user?

j


On Dec 9, 2004, at 1:23 PM, Noel Leistad wrote:
> weird... Ran updatedb &
> then:
> [root at metc2 i386-linux-thread-multi]# locate Unix.pm
> received:
> /usr/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/File/Spec/Unix.pm
> /usr/lib/perl5/site_perl/5.8.0/URI/file/Unix.pm
> /usr/lib/perl5/vendor_perl/5.8.0/URI/file/Unix.pm
>
>
> Uh-oh!!
>
> Realize that I HAVE this stuff under /usr/lib/perl5/5.8.0/i.......
>
> not the site_perl dir path...
>
> Guess I don't GET @INC
>
> Suggestions on re-writing @INC, or is that wrong direction??
>
> CPAN installs of: Pod::Usage, Pod::File::Spec, Pod::Perldoc::ToMan ALL 
> show
> (\1) up to date!!
>
> More suggestions??
>
> Noel
>
> Error message ( for reference...)
> [root at metc2 root]# perldoc Mail::SpamAssassin::Conf
> Can't locate File/Spec/Unix.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/File/Spec.pm line 21.
> Compilation failed in require at /usr/lib/perl5/5.8.0/Pod/Usage.pm 
> line 405.
> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Usage.pm 
> line
> 405.
> Compilation failed in require at /usr/bin/pod2man line 17.
> BEGIN failed--compilation aborted at /usr/bin/pod2man line 17.
> Got a 0-length file from
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Conf.pm via
> Pod::Perldoc::ToMan!?



More information about the Omaha-pm mailing list