Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Greetings,

I am trying to install PAR 0.86 on a Win32 system running ActiveState Perl 5.6.1. I installed the PAR package and its prerequisites with no errors. During the run of perl Makefile.PL it attempted to download the binary file PAR-0.86-MSWin32-x86-multi-thread-5.6.1.par from CPAN. However, I am behind a firewall and cannot figure out how to make CPAN.pm actually download things, but I'm not worrying about that. So I downloaded the .par file myself, unzipped it, and copied the contents of the /script directory into C:\Perl\bin as I understood the instructions to mean. But when I try to run pp -o test.exe test.pl with a very simple test program, I get

Can't locate Cwd.pm in @INC (@INC contains: CODE(0x92020c) .) at C:/Pe +rl/lib/File/Spec/Win32.pm line 4. BEGIN failed--compilation aborted at C:/Perl/lib/File/Spec/Win32.pm li +ne 4. Compilation failed in require at C:/Perl/lib/File/Spec.pm line 15. Compilation failed in require at C:/Perl/lib/IO/File.pm line 113. BEGIN failed--compilation aborted at C:/Perl/lib/IO/File.pm line 113. Compilation failed in require at -e line 305.
But I know that's not the real problem because
perl -MCwd -e"print cwd"
works fine. I searched Google and found one example where someone encountered this error because he had unzipped his .par binary file directly into C:\Perl and it overwrote some of the default Perl files, but that's definitely not what I did. Any advice?


In reply to PAR error on Win32: Can't locate Cwd.pm by Errto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found