Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux

by Khen1950fx (Canon)
on Dec 03, 2011 at 13:16 UTC ( [id://941532]=note: print w/replies, xml ) Need Help??


in reply to PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux

Thanks for pointing out the problem. I tried installing it with perl versions 5.8.8, 5.10.1, 5.12, 5.14.1, and also ActivePerl-5.12, and ActivePerl-5.14. Each one complained about a private /tmp/par-root; so, in order to install it, you'll need to remove /tmp/par-root first. I'm on Fedora, so I did
mv /tmp/par-root /root/Desktop right-click "Move to Trash" Empty Trash export PERL_TEST_POD=1
and you're good to go.
  • Comment on Re: PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux
  • Download Code

Replies are listed 'Best First'.
Re^2: PAR::Packer Installation; Prototype mismatch; libperl.so: File format not recognized; ActivePerl-5.14.2.1402-x86_64-linux
by Gary Yang (Acolyte) on Dec 03, 2011 at 19:16 UTC

    It does not work. I deleted /tmp/par-root and set PERL_TEST_POD=1.

    ls /tmp
    PAR-Packer-1.012/ PAR-Packer-1.012.tar

    echo $PERL_TEST_POD
    1

    perl Makefile.PL
    Checking if your kit is complete...
    Looks good
    Prototype mismatch: sub main::prompt: none vs ($;$) at /opt/ActivePerl-5.14/site/lib/ExtUtils/MakeMaker.pm line 219 objdump: /opt/ActivePerl-5.14/lib/CORE/libperl.so: File format not recognized
    Writing Makefile for par
    Writing MYMETA.yml and MYMETA.json
    Writing Makefile for PAR::Packer
    Writing MYMETA.yml and MYMETA.json

    It complains "Prototype mismatch. libperl.so: File format not recognized", not "about a private /tmp/par-root". Any idea?

      run make then see what that says

        I got the same error, "/opt/ActivePerl-5.14/lib/CORE/libperl.so: file not recognized: File format not recognized".
        make
        cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
        cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
        cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
        cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
        cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
        cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
        cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
        cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
        cp lib/pp.pm blib/lib/pp.pm
        cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
        make1: Entering directory `/tmp/PAR-Packer-1.012/myldr'
        Makefile:726: warning: overriding commands for target `.c.o' Makefile:332: warning: ignoring old commands for target `.c.o' /opt/ActivePerl-5.14/bin/perl-static ./file2c.pl -s ../script/par.pl my_par_pl.c load_my_par_pl /opt/ActivePerl-5.14/bin/perl-static sha1.c.PL gcc -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ActivePerl-5.14/lib/CORE -DPARL_EXE=\"parl\" -O2 main.c
        In file included from mktmpdir.h:85,
        from mktmpdir.c:1,
        from main.c:52:
        sha1.c: In function ‘sha_transform’:
        sha1.c:146: warning: right shift count >= width of type gcc main.o -s -Wl,-E -Wl,-rpath,/opt/ActivePerl-5.14/lib/CORE -L/opt/ActivePerl-5.14/lib/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -o ./par
        /opt/ActivePerl-5.14/lib/CORE/libperl.so: file not
        recognized: File format not recognized
        collect2: ld returned 1 exit status
        make1: *** par Error 1
        make1: Leaving directory `/tmp/PAR-Packer-1.012/myldr'
        make: *** subdirs Error 2

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found