Bug! Help needed! I do not know if the two are related. However, there is a change in error messages from Alons to Kerians when going from the par 0.80 that you can download and install, to the latest experimental par/pp versions that can be found at the pastes below.
I was getting the same thing as Alon (including the "at -e line 164" message) on my Mandrake 9.1 running Perl 5.8.0. The experiment covered various Perl versions under PAR 0.80, so I downloaded the latest experimental pp and par versions of these two files: http://p4.elixus.org/repos/member/autrijus/PAR/script/pp http://p4.elixus.org/repos/member/autrijus/PAR/script/par.pl I removed all par cache files, remade the executable with the new pp, and I now get Kerian's results. Since /usr/bin is already in my $PATH I did not do the export. I am first pasting my results from the 0.80 version, which gives the errors Alon gets. I will then paste the results from the experimental pp, which gives Kerian's results. I will repaste Alon's and Kerian's results after that. ------------------------------------- paste normal 0.80 par version ------------------------------------------ [EMAIL PROTECTED] malcolm]# cat > /var/tmp/helloworld.pl #!/usr/bin/perl print "hello world\n"; [EMAIL PROTECTED] malcolm]# perl /var/tmp/helloworld.pl hello world [EMAIL PROTECTED] malcolm]# pp -o /usr/bin/helloworld /var/tmp/helloworld.pl [EMAIL PROTECTED] malcolm]# echo $PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin [EMAIL PROTECTED] malcolm]# /usr/bin/helloworld hello world [EMAIL PROTECTED] malcolm]# helloworld IO error: opening helloworld for read : No such file or directory at -e line 164 Can't call method "extractTree" on an undefined value at ../blib/lib/PAR.pm line 264. [EMAIL PROTECTED] malcolm]# ls -lag /usr/bin/helloworld -rwxr-xr-x 1 root 1745362 May 19 09:39 /usr/bin/helloworld* [EMAIL PROTECTED] malcolm]# /usr/bin/helloworld hello world ------------------------------------- paste experimental par version ------------------------------------------ [EMAIL PROTECTED] root]# cat /var/tmp/helloworld.pl #!/usr/bin/perl print "hello world\n"; [EMAIL PROTECTED] root]# perl /var/tmp/helloworld.pl hello world [EMAIL PROTECTED] root]# whoami root [EMAIL PROTECTED] root]# pp -o /usr/bin/helloworld /var/tmp/helloworld.pl [EMAIL PROTECTED] root]# which helloworld /usr/bin/helloworld [EMAIL PROTECTED] root]# helloworld Usage: helloworld [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ program.pl ] helloworld [ -B|-b ] [-Ooutfile] src.par [EMAIL PROTECTED] root]# /usr/bin/helloworld hello world --------------------------------------- paste from [EMAIL PROTECTED] Hi, I'm encountering a very strange behavior with the executable I generated using PAR-0.80 with perl-5.8.4, on Linux 2.4.22-10mdk (aka Mandrake 9.2). My PATH has /home/me/bin in it and I copy 'my.exe' into that directory after building it. If I run it using just the name of the file, it fails. If I use the full path to the file, it runs correctly. Any clues as to what is going on? Here are various pieces of information on the system and the results of various commands: [/home/me] file bin/me.exe bin/me.exe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped [/home/me]$ me.exe IO error: opening me.exe for read : No such file or directory at -e line 164 Can't call method "extractTree" on an undefined value at ../blib/lib/PAR.pm line 263. [/home/me]$ bin/me.exe ... expected behavior... [/home/me]$ ldd bin/me.exe libnsl.so.1 => /lib/libnsl.so.1 (0x40024000) libdl.so.2 => /lib/libdl.so.2 (0x40038000) libm.so.6 => /lib/i686/libm.so.6 (0x4003b000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4005e000) libutil.so.1 => /lib/libutil.so.1 (0x4008c000) libc.so.6 => /lib/i686/libc.so.6 (0x4008f000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Thanks for any help you can give on this! Alan ---------------------------paste from Kieran's original email perl.par (1242) perl.par There will be better navigation features and such soon; be patient. Previous | Next | Toggle headers Newsgroups: perl.par Message-ID: <EE838657EBCED611AE15000802B0522F0E802E17[at]gsln26e.ln.fw.gs.com> To: "'par[at]perl.org'" <par[at]perl.org> Subject: $PATH and Linux (RHEL3) Date: Thu, 8 Apr 2004 11:38:50 +0100 From: Kieran.Broadfoot[at]gs.com (Kieran J Broadfoot) Everyone, Apologies if this has been discussed already on the mail list. I was unable to find anything appropriate in the archive. I appear to be having issues running a pp compiled perl script from my $PATH on a RHEL3U1 machine using perl 5.8.0 plus PAR 0.80_99. As an example: # cat > /var/tmp/helloworld.pl #!/usr/bin/perl print "hello world\n"; # pp -o /usr/bin/helloworld /var/tmp/helloworld.pl # export PATH=/usr/bin # /usr/bin/helloworld hello world # which helloworld /usr/bin/helloworld # helloworld Usage: helloworld [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ program.pl ] helloworld [ -B|-b ] [-Ooutfile] src.par This same example works fine on Solaris 8 using the same version of PAR, albeit with perl 5.6. Ill continue to debug the problem but can anyone offer an explanation or similar experiences? Thank you in advance kieran
