Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

PAR error on Win32: Can't locate

by Errto (Vicar)
on Jan 14, 2005 at 16:47 UTC ( #422308=perlquestion: print w/replies, xml ) Need Help??
Errto has asked for the wisdom of the Perl Monks concerning the following question:


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 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 with a very simple test program, I get

Can't locate in @INC (@INC contains: CODE(0x92020c) .) at C:/Pe +rl/lib/File/Spec/ line 4. BEGIN failed--compilation aborted at C:/Perl/lib/File/Spec/ li +ne 4. Compilation failed in require at C:/Perl/lib/File/ line 15. Compilation failed in require at C:/Perl/lib/IO/ line 113. BEGIN failed--compilation aborted at C:/Perl/lib/IO/ 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?

Replies are listed 'Best First'.
Re: PAR error on Win32: Can't locate
by Tortue (Scribe) on Jan 14, 2005 at 21:02 UTC
    Something looks strange with your @INC. Compare with mine when I make it fail on a nonexistent package Zowie:
    C:\Kai\perl\PAR test>pp -o test.exe C:\Kai\perl\PAR test>test Can't locate in @INC (@INC contains: CODE(0xd9d784) C:\DOCUME +~1\KAICAR~1\LOCALS~1\Temp\par-Kai_Carver\cache-1105735837/inc/lib C:\ +DOCUME~1\KAICAR~1\LOCALS~1\Temp\par-Kai_Carver\cache-1105735837/inc C +ODE(0xd306d8) .) at script/ line 3. BEGIN failed--compilation aborted at script/ line 3. C:\Kai\perl\PAR test>
    The part with the cache where everything is supposed to be stored is missing from your error output.

    Also, can you maybe try to install PAR using ppm, rather than ppm install
      That worked fine for me. I also hunted around online a bunch, and found some stuff online including one very specific piece of advice at, which I tried but it didn't work. Also, curiously enough I am still not able to get to connect through my proxies correctly, but ppm seems just fine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://422308]
Approved by Corion
[Dumu]: got it. Anyway. Perl question. Can you use binmode more than once with an open filehandle to read a file first in binary mode, then in utf8 mode?
[ambrus]: Dumu: you can use binmode multiple times, but mostly at the start before you read things. it would be strange to change the io layers after you've already read things, and might not work too well.
[ambrus]: Dumu: why would you want to read the same file both in binary mode and utf8 mode?
[Corion]: Dumu: Yes, but switching needs to be done with caution, as you might read half an UTF-8 character in binary mode, and then switch to utf8 mode...
[Corion]: Personally, I would do the decoding of data in the program and not in the filehandle
[Corion]: ambrus: Maybe a record-based file where some data is strings encoded as utf8
[Corion]: But again, I would read all data as binary and then decode from utf8
[ambrus]: Corion: that wouldn't be my guess, but I'll wait for Dumu
[Corion]: Meh. I'm now on Firefox 57 ("Quantum") and again have to remove Pocket, and reinstall the adblocker, uMatrix (because NoScript doesn't work) and silence the about:blank page to not download crap from the internet
[Corion]: Maybe I shouldn't update software ...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-11-20 17:48 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (290 votes). Check out past polls.