Monday, April 28, 2008

Interesting Perl error

I installed Fedora Linux, Core 8 inside of VMWare and upon getting to a command prompt I tried to get into the CPAN shell. Well, needless to say (and to cut to the chase, this is what I was presented with:

$ perl -MCPAN -e shell
Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .).
BEGIN failed--compilation aborted.

Yes, that kind of left me scratching my head. I have never had Perl just simply hurl like that. So, after doing some checking around and not finding any nice solution, I decided to download Perl 5.10 and am presently doing an installation of it. We shall soon see what becomes of it.

1 comment:

Anonymous said...

Probably means that you didn't have that particular library installed. Did you try using yum? A quick google suggests that the command you would need is "yum install perl-libwww-perl"

Keep in touch,
Motoma

 
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.