in reply to Flummoxed by strict.pm

So, why wouldn't ActiveState have strict.pm,

AS perl *always* comes with strict.pm. If it isn't being found, it's because your installation is broken.

What do you get if you run this command?

perl -V:archlib -V:installsitelib

And how did you do the installation of your AS perl?

My guess is that you downloaded & unpacked the .ZIP, but didn't run the install script?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^2: Flummoxed by strict.pm
by CaptainRob (Novice) on May 07, 2010 at 21:11 UTC

    BrowserUK,

    Thanks for the suggestion. This is what I got on the command line:

    C:\>perl -V:archlib -V:installsiteli archlib='C:\Perl64\lib'; installsitelib='C:\Perl64\site\lib';

    Still the same error message

    But thanks for the suggestion

      And if you do

      dir C:\Perl64\lib\s*.pm

        Thanks, BrowserUK.

        strict.pm appears to be there, but I still get the same error message

        Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Captain Rob>cd.. C:\Users>cd.. C:\>cd perl64 C:\Perl64>cd bin C:\Perl64\bin>entities_99.pl Can't locate strict.pm in @INC (@INC contains: .) at C:\Perl64\bin\ent +ities_99.p l line 2. BEGIN failed--compilation aborted at C:\Perl64\bin\entities_99.pl line + 2. C:\Perl64\bin>dir C:\Perl64\lib\s*.pm Volume in drive C is Gateway Volume Serial Number is 12E4-B021 Directory of C:\Perl64\lib 11/30/2009 03:28 PM 19,698 Safe.pm 06/13/2006 01:29 PM 2,631 SDBM_File.pm 07/03/2009 04:42 PM 1,130 SelectSaver.pm 10/25/2008 03:50 AM 17,776 SelfLoader.pm 04/11/2007 07:12 AM 8,955 Shell.pm 02/25/2007 09:01 AM 7,900 sigtrap.pm 07/03/2009 04:42 PM 10,398 Socket.pm 09/03/2006 06:52 AM 6,289 sort.pm 08/05/2009 11:25 PM 40,995 Storable.pm 10/10/2007 02:19 AM 3,863 strict.pm 06/13/2006 01:29 PM 882 subs.pm 10/23/2009 01:52 AM 28,456 Switch.pm 02/25/2009 02:37 PM 4,964 Symbol.pm 13 File(s) 153,937 bytes 0 Dir(s) 857,551,073,280 bytes free C:\Perl64\bin>

        Thanks again for your interest and time

        I had a similar problem. I was getting this error: Can't locate strict.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. perl64\lib did not have strict.pm (and many other files were also missing - i dont know how). A clean re-install fixed the issue. Thanks for posting this check. -Nishant