http://www.perlmonks.org?node_id=422386


in reply to PAR error on Win32: Can't locate Cwd.pm

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 test.pl C:\Kai\perl\PAR test>test Can't locate Zowie.pm 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/test.pl line 3. BEGIN failed--compilation aborted at script/test.pl 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 CPAN.pm?

http://www.nntp.perl.org/group/perl.par/1705 ppm install http://www.bribes.org/perl/ppm/PAR.ppd

Replies are listed 'Best First'.
Re^2: PAR error on Win32: Can't locate Cwd.pm
by Errto (Vicar) on Jan 14, 2005 at 22:29 UTC
    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 http://www.nntp.perl.org/group/perl.par/1727, which I tried but it didn't work. Also, curiously enough I am still not able to get CPAN.pm to connect through my proxies correctly, but ppm seems just fine.