Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Simple PAR problems

by water (Deacon)
on Mar 07, 2005 at 13:57 UTC ( #437209=perlquestion: print w/replies, xml ) Need Help??
water has asked for the wisdom of the Perl Monks concerning the following question:

I'm having trouble with PAR on win xp pro. Any suggestions most welcome. Thanks.

The error is

Can't spawn "C:\APPS\Perl\bin\parl.exe": Bad file descriptor at C:\APPS\Perl\bin

Here's the hello world test:

C:\Documents and Settings\Desktop\scroll>perl hello world C:\Documents and Settings\Desktop\scroll>type use strict; print "hello world\n"; C:\Documents and Settings\Desktop\scroll>pp Can't spawn "C:\APPS\Perl\bin\parl.exe": Bad file descriptor at C:\APP +S\Perl\bin \pp line 372.
And here's perl -V
Summary of my perl5 (revision 5 version 8 subversion 2) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultip +licity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D +_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICI +T_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX', optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64 +', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -l +ibpath:"C:\APPS\Perl\lib\CORE" -machine:x86' libpth=C:\PROGRA~1\MICROS~3\VC98\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib + comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netap +i32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib +b odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool +.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib n +etapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc3 +2.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib gnulibc_version='undef' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt: +ref,icf -libpath:"C:\APPS\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL +_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 808 21846 Configure gets d_u32align wrong 21739 [perl #24493] install.html not working 21737 Ooops. left an XXX comment in, and worse still it's a // c +omment 21735 utf8 keys now work for tied hashes 21734 Accessing unicode keys in tie hashes via hv_exists was bro +ken 21733 ext/threads/t/problem.t 21732 Config::myconfig() fails under ithreads 21728 Update perlhist with 5.6.2 21723 Include 'SCCS' in the list of dir names ignored by install +perl 21718 Empty subroutine as object method segfaults in 5.8.2 (some +times) 21714 Fix bug #24380: assigning list with duplicated keys to a h +ash 21706 [perl #24460] [DOC PATCH] the begincheck program 21693 must copy changes from win32/ to wince/makefile +.ce 21691 Update the list of pumpkings in perlhist.pod 21687 [PATCH 5.6.2-RC1 pod/perlhist.pod] Updated 21677 OS/2 docu 21676 Bug #24407: key for shared hash got stringified into wrong + pool 21673 Be sure to use -fPIC not -fpic on Linux/SPARC 21672 extending the hash attack test 21671 cmpthese segfault 21662 'make minitest' fails for op/cproto and op/pat 21586 Comment that this 'optimisation' is actually a necessary f +ixup 21548 Sync with Pod::Perldoc 3.12 21540 Fix backward-compatibility issues in Built under MSWin32 Compiled at Dec 9 2003 10:19:40 @INC: C:/APPS/Perl/lib C:/APPS/Perl/site/lib .
Just installed PAR today
C:\Documents and Settings\Desktop\scroll>ppm PPM - Programmer's Package Manager version 3.1. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Type 'help' to get started. ppm> properties PAR ==================== Name: PAR Version: 0.75 Author: Autrijus Tang ( Title: PAR Abstract: Perl Archive Tookit InstDate: 08:29:48 2005 Location: +MServer Prerequisites: 1. Module-ScanDeps 0.0 2. Archive-Zip 0.0 3. PAR-Dist 0.05 Available Platforms: 1. MSWin32-x86-multi-thread-5.8 ====================

2005-03-07 Janitored by Arunbear - added readmore tags, as per Monastery guidelines

Replies are listed 'Best First'.
Re: Simple PAR problems
by fglock (Vicar) on Mar 07, 2005 at 17:49 UTC

    This is a known problem. You may need to upgrade PAR - there have been some recent fixes, such as:

    Changes for 0.87
    - On Win32, some versions of File::Spec::Win32 contains explicit "use Cwd;" lines, which renders parl.exe unusable.

      Pardon me for being slow about Active State perl... if the PPM install didn't grab the correct version, how does one tell PPM to go elsewhere for a better copy?


Re: Simple PAR problems
by chas (Priest) on Mar 07, 2005 at 14:57 UTC
    Can't spawn "C:\APPS\Perl\bin\parl.exe"
    I assume you've checked to see if that really exists on your that actually there?
      Yes. It is.
        Well, that is strange...I've had similar situations that just drove me crazy. Sometimes case (i.e.uc or lc) is a problem (often doesn't matter for file names/paths in Windows, but occasionally it does), and sometimes those backslashes can get interpreted as escapes so you need more backslashes (although if you did an install via ppm, that should have been taken care of.) Sometimes also (on Windows) a long path gets translated into something peculiar. Seems like it has to be something of that sort since the executable is there but isn't found.
        Sorry I likely haven't been much help...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://437209]
Approved by sh1tn
[nysus]: Can anyone else submit a post? I can't. I just see the preview button. No way for me to submit a post.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-12-15 03:31 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (416 votes). Check out past polls.