Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

PAR on AIX 5.3

by 0xbeef (Hermit)
on Nov 28, 2006 at 13:57 UTC ( #586470=perlquestion: print w/replies, xml ) Need Help??

0xbeef has asked for the wisdom of the Perl Monks concerning the following question:

I initially installed and used PAR on AIX 5.2 and AIX 5.3 without problems. Recently, I decided to make use of PAR::Filter::Bleach and PAR::Filter::Squish, and used CPAN to autoinstall all the dependencies. I now run into trouble when I even try a simple command:

pp -o myprog.exe myprog.pl is only avaliable with the XS version at /usr/opt/perl5/lib/site_perl +/5.8.2/Compress/Zlib.pm line 9 BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.8. +2/Compress/Zlib.pm line 9. Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.8.2/Ar +chive/Zip.pm line 24. BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.8. +2/Archive/Zip.pm line 24. Compilation failed in require at -e line 406. /usr/opt/perl5/bin/pp: Failed to extract a parl from 'PAR::StrippedPAR +L::Static' to file 'parls0KcQKK' at /usr/opt/perl5/lib/site_perl/5.8. +2/PAR/Packer.pm line 1142, <DATA> line 1.

BTW, line 9 of Zlib.pm reads: "use Scalar::Util qw(dualvar);" and Scalar::Util is installed.

In fact, I had to manually compile & install Scalar::Util using the fix described here, but the above error persists even though the module installed successfully.

Any insights into getting around this would be appreciated!

Regards,
Niel

Replies are listed 'Best First'.
Re: PAR on AIX 5.3
by MonkE (Hermit) on Nov 28, 2006 at 15:13 UTC
    If you are having a problem with spaces in your include path, try specifying the include path without spaces, or get the latest verison of the SVN sources with one of the commands below. Apparently this issue was addressed just a few days ago.

    svn checkout http://svn.openfoundry.org/par/trunk

    svk checkout http://svn.openfoundry.org/par/trunk

      I do not invoke it in this way since I simply use "pp", but thanks for the link, didn't know about perl.par group till now!

      Regards
      Niel

        Still no solution yet. I have however found that if I comment line 9 in Zlib.pm "use Scalar::Util qw(dualvar);", the problem disappears and I am able to use the "pp" utility including both the Bleach and Squish filters.

        I have re-installed Scalar-List-Utils-1.18 with success, but the problem does not get resolved...

        Regards,
        Niel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://586470]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2022-05-19 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (71 votes). Check out past polls.

    Notices?