More interesting results ... I tried:
pp -B -P -o packed.pl testy.pl which spit out a packed.pl file which ran fine (I ran ./packed.pl) and it printed "Hello world". I took the packed.pl and put it on a fresh SCO 5.0.7 machine. When I try to run it over there I get the following error: Can't locate PAR/Heavy.pm in @INC (@INC contains: CODE(0x8092b80) /usr/lib/perl5/5.8.0/i586-pc-sco3.2v5.0 /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-pc-sco3.2v5.0 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/sco_perl/5.8.0/i586-pc-sco3.2v5.0 /usr/lib/perl5/sco_perl/5.8.0 /usr/lib/perl5/sco_perl .) at /usr/bin/par.pl line 348. I'm not sure why this doesn't work. The paths in @INC are the normal paths from the default perl install; I thought running packed.pl would change the @INC; but maybe it doesn't even get that far. Hopefully the above information along with the previous message sent will help troubleshoot. Please let me know what I should try next. As far as my goal, is PAR-Packer the answer or am I complicating things. All the SCO boxes I'm trying to copy to will have a default version of perl on it, but will not have a compiler. So I need to package up modules and libraries my program depends on for deployment to the other boxes. Is there a manual way to do this? Thanks! -----Original Message----- From: Michael Miller [mailto:[email protected]] Sent: Friday, February 11, 2011 10:49 AM To: Roderich Schupp Cc: [email protected] Subject: RE: Trouble putting together a stand alone Sorry about the screenshot; won't happen again. I'm still having trouble and need some more advice. I created a simple testy.pl script with the following in it: use Digest::SHA; print "Hello world"; When I run "perl testy.pl" I get "Hello world" printed to the console. So it works fine. Then I try: pp -o testy testy.pl It outputs a testy file but when I try to run testy (./testy) I get: Can't locate loadable object for module Digest::SHA in @INC (@INC contains: CODE(0x8059bf0) /usr/tmp/par-root/cache-76080e1a2850a4eac8ad6deba208cda3a1835c28/inc/lib /usr/tmp/par-root/cache-76080e1a2850a4eac8ad6deba208cda3a1835c28/inc CODE(0x85de45c) CODE(0x85e2dac)) at /usr/lib/perl5/site_perl/5.8.0/PAR/Heavy.pm line 103 Compilation failed in require at script/testy.pl line 1. BEGIN failed--compilation aborted at script/testy.pl line 1. Note I'm now using PAR Packager, version 1.008 (PAR version 1.002). My Module::ScanDeps is up to date (0.98) according to cpan. I was able to get 1.008 to compile on my box after altering the following line of perl in file2c.pl inside the myldr directory of the PAR-Packer project from SVN : print $out "const char ${c_var}${suffix}[] = "; to print $out "const char ${c_var}${suffix} [] = "; (there's a space between ${suffix} and the []) Without the space my gcc compiler on my SCO VM failed to compile with the following error: make[1]: Entering directory `/LDM/packages/PAR-Packer-1.008/myldr' perl ./file2c.pl -s ../script/par.pl -l my_par_pl.c load_my_par_pl Global symbol "@suffix" requires explicit package name at ./file2c.pl line 76. Execution of ./file2c.pl aborted due to compilation errors. make[1]: *** [my_par_pl.c] Error 255 make[1]: Leaving directory `/LDM/packages/PAR-Packer-1.008/myldr' make: *** [subdirs] Error 2 Also note that Digest::SHA is installed and up to date. From cpan I ran "install Digest::SHA" and I got a message that Digest::SHA is up to date (5.50). "perl -v" tells me I'm running perl v5.8.0 built for i585-pc-sco3.2v5.0 ... it's the default perl for SCO 5.0.7. Please advise on what else I should try to get this working. My goal is to create a stand-alone I can copy to other SCO 5.0.7 boxes that may or may not have perl on them. Thank you! -----Original Message----- From: Roderich Schupp [mailto:[email protected]] Sent: Friday, February 11, 2011 3:48 AM To: Michael Miller Cc: [email protected] Subject: Re: Trouble putting together a stand alone On Fri, Feb 11, 2011 at 2:14 AM, Michael Miller <[email protected]> wrote: > I’m having trouble using the par packer and was wondering if someone could > give me some direction. > Below is a screenshot of the error I’m getting: Please don't post screenshots (unless your problem really is the graphic appearance), as their contents (the actual error message) is not searchable. As for your problem: looks like this has come up before http://markmail.org/thread/ec4x27uqd6ujtnjq Executive summary: check if adding an explicit use Digest::SHA; to your script makes the problem go away. Cheers, Roderich ##################################################################################### Attention: The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. #####################################################################################
