On Fri, Jul 17, 2009 at 10:48 PM, <vanderputten_jenni...@emc.com> wrote: > Getting an error in make test: > > t/20-pp...................Can't exec "./parlhN6H8Ou.exe": Permission > denied at /cygdrive/z/Celerra EFD TCO/libs/PAR-Packer-0.991/blib/lib/PA > R/Packer.pm line 1396, <DATA> line 1.
Note: PAR::Packer 0.991 builds (incl. "make test") fine here (Cygwin Perl 5.10.0 on WindowsXP) - except that it skips t/20-pp.t altogether because it doesn't realize that "/usr/bin/perl.exe" (from $^X) and "/usr/bin/perl5.10.0" (from $Config{startperl} sans the leading "#!") denote the same file. If I coerce t/20-pp.t do run its tests anyway, they succeed. As an experiment, please comment out the last "unlink ..." in PAR::Packer::DESTROY(): --- lib/PAR/Packer.pm.orig 2009-04-28 18:15:11.000000000 +0200 +++ lib/PAR/Packer.pm 2009-07-19 14:50:25.000000000 +0200 @@ -1648,7 +1648,7 @@ my $opt = $self->{options}; unlink $par_file if ($par_file and !$opt->{S} and !$opt->{p}); - unlink $self->{parl} if $self->{parl_is_temporary}; +# unlink $self->{parl} if $self->{parl_is_temporary}; } 1; and re-run "make test". This prevents the file mentioned in the error message to be deleted at the end of the run. Try running this exe (should print just a usage message when run without arguments), perhaps in a command window (i.e. "outside" Cygwin). Also check its Windows security descriptors and access control lists and if they are different from an executable that "works" under Cygwin. The code in PAR::Packer does a "chmod 755" on this file, but perhaps that's not enough depending on your Windows and Cygwin set up, cf. http://search.cpan.org/dist/perl/README.cygwin#TEST_ON_CYGWIN Cheers, Roderich