Can't locate strict.pm in @INC
Posted on 2003-02-27
Hi there, having a problem with perl.
I get this error when trying to run any perl script.
Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at test line 2.
BEGIN failed--compilation aborted at test line 2.
But I do not get the error when;
I am logged in as Root or,
I remove the line "use strict;"
I am actually running perl 5.6.1, I tried to install 5.8.0 a while back and it totally buggered my system and I had to restore from backup, but somehow it still see's the old perl.
If I do a perl -V I get this back,
So @INC seems to know where to go.
This is very strange, I don't understand where perl is getting this info from, and why it only does it as a normal non SU user.
I removed all files pertaining to 5.8.0, there is nothing in my system for perl 5.8.
This was a Debian package install, I just reinstalled the latest copy and still get the error.
Does anyone know what is happening here?
Thanks for help.