Problems with PAR

J

Justin Smith

I'm running

Linux jsmith-desktop 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT
2007 x86_64 GNU/Linux

and am trying to package a perl program that uses many modules.

pp seems to run correctly but when I try to run the output, I get:


"catfile" is not exported by the File::Spec module
Can't continue after import errors at Tk.pm line 18
BEGIN failed--compilation aborted at Tk.pm line 18.
Compilation failed in require at script/diary.pl line 17.
BEGIN failed--compilation aborted at script/diary.pl line 17.


This happens even if I just try to package the modules into a Perl file,
i.e. run

pp -P diary.pl

Line 17 of my program has 'Use Tk;'.

Any suggestions?
 
B

Ben Morrow

Quoth Justin Smith said:
I'm running

Linux jsmith-desktop 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT
2007 x86_64 GNU/Linux

and am trying to package a perl program that uses many modules.

pp seems to run correctly but when I try to run the output, I get:

"catfile" is not exported by the File::Spec module
Can't continue after import errors at Tk.pm line 18
BEGIN failed--compilation aborted at Tk.pm line 18.
Compilation failed in require at script/diary.pl line 17.
BEGIN failed--compilation aborted at script/diary.pl line 17.

You're using Tk-804.027_501? Upgrade to _502: _501 has the line

use File::Spec qw(catfile);

which isn't useful: File::Spec doesn't export anything, and doesn't even
have an ->import method. Why running it under pp ends up calling
Exporter->import I don't know; just

pp -o foo -e 'use File::Spec qw/catfile/'

fails in the same way, so it's nothing to do with Tk. I suspect a bug in
pp (or PAR): you could report it at rt.cpan.org.

Ben
 
J

Justin Smith

Thanks for the advice! Unfortunately, I now get the error message:


Can't locate POSIX.pm in @INC (@INC contains: CODE(0x126ad80) /tmp/par-
jsmith/cache-fc14e83c43d898aefd57a65be47befade41db747/inc/lib /tmp/par-
jsmith/cache-fc14e83c43d898aefd57a65be47befade41db747/inc CODE(0xfbcbc0)
CODE(0xfbce50)) at (eval 26) line 2.
BEGIN failed--compilation aborted at (eval 26) line 2.
couldn't read bitmap file "": No such file or directoryerror reading
bitmap file "" at Tk/Widget.pm line 205.
at Tk/Widget.pm line 203


I also get this message (about POSIX.pm) under Windows. It's kind of
odd, since POSIX is built in to perl.

Any other suggestions?
 
A

A. Sinan Unur

Justin Smith said:
Thanks for the advice! Unfortunately, I now get the error message:


Can't locate POSIX.pm in @INC (@INC contains: CODE(0x126ad80) /tmp/par-
jsmith/cache-fc14e83c43d898aefd57a65be47befade41db747/inc/lib /tmp/par-
jsmith/cache-fc14e83c43d898aefd57a65be47befade41db747/inc CODE(0xfbcbc0)
CODE(0xfbce50)) at (eval 26) line 2.
BEGIN failed--compilation aborted at (eval 26) line 2.
couldn't read bitmap file "": No such file or directoryerror reading
bitmap file "" at Tk/Widget.pm line 205.
at Tk/Widget.pm line 203


I also get this message (about POSIX.pm) under Windows. It's kind of
odd, since POSIX is built in to perl.

Apparently it is 'used' in a way that is not detected by Module::ScanDeps.

Read perldoc pp and look into the -M option.

Sinan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Par::packer 1
Problem with 'pp' 0
PAR packer Error 3
PAR and Sybase::CTlib on HP-UX 1
perl588 PAR PP bug? 1
Compiling Perl with PAR 2
Tried to make an exe with par 0
Help using PAR, installed not able to use it 10

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top