Hi,

I'm experiencing some issues while I'm trying to use pp :

[XXXXXXXX@XXXXXXXXXXX]# pp -o toto toto.pl Can't locate PAR/StrippedPARL/Static.pm in @INC (@INC contains: /usr/l +ib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/s +ite_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/ +5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr +/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-mul +ti /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/PAR/Pack +er.pm line 1223.

I did some research and found out than the module I'm supposely missing is an internal class of the module PAR::Packer that I can't simply download and add to the @INC... (http://search.cpan.org/~smueller/PAR-Packer-1.003/lib/PAR/StrippedPARL/Static.pm)

I tried to do a make clean of this module, but it failed :

cpan[2]> clean PAR::Packer Reading '/home/XXXXXXXX/.cpan/Metadata' Database was generated on Tue, 25 Sep 2012 13:55:04 GMT Running clean for module 'PAR::Packer' Running make clean Distribution seems to have never been unzipped/untarred, nothing done

CPAN said that the module was never unzipped, even though it was installed ...

cpan[3]> install PAR::Packer PAR::Packer is up to date (1.013).

I thought that maybe if I went step by step it would work so I tried a make, then make test and I didn't see any errors, but it's still printing me the same bug every time I try to use it... (here is the log for the make and the test)

cpan[4]> make PAR::Packer Running make for module 'PAR::Packer' Running make for R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz Checksum for /home/XXXXXXXX/.cpan/sources/authors/id/R/RS/RSCHUPP/PAR- +Packer-1.013.tar.gz ok Scanning cache /home/XXXXXXXX/.cpan/build for sizes .............................................................--------- +------DONE DEL(1/4): /home/XXXXXXXX/.cpan/build/TermReadKey-2.30 DEL(2/4): /home/XXXXXXXX/.cpan/build/Term-ReadLine-Perl-1.0303 DEL(3/4): /home/XXXXXXXX/.cpan/build/YAML-0.84 DEL(4/4): /home/XXXXXXXX/.cpan/build/Text-Glob-0.09 CPAN.pm: Building R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz *** You have extra Perl library paths set in your environment. Please note that these paths (set with PERL5LIB or PERLLIB) are not honored by perl when running under taint mode, which may lead to problems. This is a limitation (by design) of Perl, not of PAR::Packer; but some of the problems may manifest here during installation. Checking if your kit is complete... Looks good Prototype mismatch: sub main::prompt: none vs ($;$) at /usr/lib/perl5/ +5.8.8/ExtUtils/MakeMaker.pm line 219 Writing Makefile for par Writing MYMETA.yml and MYMETA.json Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm 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/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 make[1]: Entering directory `/home/root-hjo/.cpan/build/PAR-Packer-1.0 +13-LFkx7e/myldr' Makefile:726: warning: overriding commands for target `.c.o' Makefile:332: warning: ignoring old commands for target `.c.o' /usr/bin/perl ./file2c.pl -s ../script/par.pl my_par_pl.c load_my_par_ +pl /usr/bin/perl sha1.c.PL gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclara +tion-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64- +linux-thread-multi/CORE -DPARL_EXE=\"parl\" -O2 -g -pipe -Wall -Wp,- +D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer- +size=4 -m64 -mtune=generic main.c In file included from main.c:52: mktmpdir.c: In function âpar_setup_libpathâ: mktmpdir.c:63: warning: suggest parentheses around assignment used as +truth value mktmpdir.c: In function âpar_mktmpdirâ: mktmpdir.c:233: warning: ignoring return value of âreadâ, declared wit +h attribute warn_unused_result mktmpdir.c:238: warning: ignoring return value of âreadâ, declared wit +h attribute warn_unused_result main.c: In function âmainâ: main.c:121: warning: pointer targets in assignment differ in signednes +s gcc main.o -s -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-t +hread-multi/CORE /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/au +to/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thre +ad-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread + -lc -o ./par true /usr/bin/perl encode_append.pl Dynamic.in ./par Dynamic.pm /usr/bin/perl ./file2c.pl -c 30000 ./par my_par.c load_my_par /usr/bin/perl ./file2c.pl -c 30000 -n libperl.so /usr/lib64/perl5/5.8. +8/x86_64-linux-thread-multi/CORE/libperl.so my_libperl.c load_my_libp +erl gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclara +tion-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64- +linux-thread-multi/CORE -DPARL_EXE=\"parl\" -O2 -g -pipe -Wall -Wp,- +D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer- +size=4 -m64 -mtune=generic boot.c In file included from boot.c:27: mktmpdir.c: In function âpar_setup_libpathâ: mktmpdir.c:63: warning: suggest parentheses around assignment used as +truth value mktmpdir.c: In function âpar_mktmpdirâ: mktmpdir.c:233: warning: ignoring return value of âreadâ, declared wit +h attribute warn_unused_result mktmpdir.c:238: warning: ignoring return value of âreadâ, declared wit +h attribute warn_unused_result gcc boot.o -s -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-th +read-multi/CORE /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/aut +o/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-threa +d-multi/CORE -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -o + ./boot true /usr/bin/perl encode_append.pl Static.in ./boot Static.pm cp Static.pm ../blib/lib/PAR/StrippedPARL/Static.pm cp Dynamic.pm ../blib/lib/PAR/StrippedPARL/Dynamic.pm /usr/bin/perl -Mblib run_with_inc.pl ./par -q -B -Oparldyn cp parldyn ../blib/script/parldyn true ../blib/script/parldyn /usr/bin/perl -Mblib run_with_inc.pl ./boot -q -B -Oparl cp parl ../blib/script/parl true ../blib/script/parl Manifying ../blib/man1/parldyn.1 Manifying ../blib/man1/parl.1 make[1]: Leaving directory `/home/root-hjo/.cpan/build/PAR-Packer-1.01 +3-LFkx7e/myldr' cp script/tkpp blib/script/tkpp /usr/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/scr +ipt/tkpp cp script/pp blib/script/pp /usr/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/scr +ipt/pp cp script/par.pl blib/script/par.pl /usr/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/scr +ipt/par.pl Manifying blib/man1/tkpp.1 Manifying blib/man1/pp.1 Manifying blib/man1/par.pl.1 Manifying blib/man3/PAR::Filter::Obfuscate.3pm Manifying blib/man3/PAR::Filter::PodStrip.3pm Manifying blib/man3/PAR::StrippedPARL::Base.3pm Manifying blib/man3/PAR::Packer.3pm Manifying blib/man3/App::Packer::PAR.3pm Manifying blib/man3/PAR::Filter.3pm Manifying blib/man3/PAR::Filter::PatchContent.3pm Manifying blib/man3/PAR::Filter::Bytecode.3pm Manifying blib/man3/pp.3pm Manifying blib/man3/PAR::Filter::Bleach.3pm RSCHUPP/PAR-Packer-1.013.tar.gz /usr/bin/make -- OK

cpan[6]> test PAR::Packer Running test for module 'PAR::Packer' Running make for R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz Has already been unwrapped into directory /home/XXXXXXXX/.cpan/build +/PAR-Packer-1.013-LFkx7e Has already been made Running make test make[1]: Entering directory `/home/XXXXXXXX/.cpan/build/PAR-Packer-1.0 +13-LFkx7e/myldr' Makefile:726: warning: overriding commands for target `.c.o' Makefile:332: warning: ignoring old commands for target `.c.o' Manifying ../blib/man1/parldyn.1 Manifying ../blib/man1/parl.1 make[1]: Leaving directory `/home/XXXXXXXX/.cpan/build/PAR-Packer-1.01 +3-LFkx7e/myldr' PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-pod.t t/10-parl-gener +ation.t t/20-pp.t t/30-current_exec.t t/40-packer_cd_option.t t/90-rt +59710.t t/00-pod.t ............... t/00-pod.t ............... skipped: Set environment variable PERL_TEST +_POD=1 to test POD t/10-parl-generation.t ... t/10-parl-generation.t ... 1/31 t/10-parl-generation.t ... 28/31 t/10-parl-generation.t ... ok t/20-pp.t ................ t/20-pp.t ................ 1/34 t/20-pp.t ................ 2/34 t/20-pp.t ................ 4/34 t/20-pp.t ................ 6/34 t/20-pp.t ................ 9/34 t/20-pp.t ................ 10/34 t/20-pp.t ................ 12/34 /tmp/s29pywv2e2 syntax OK t/20-pp.t ................ 15/34 t/20-pp.t ................ 16/34 t/20-pp.t ................ 17/34 t/20-pp.t ................ 18/34 t/20-pp.t ................ 19/34 t/20-pp.t ................ 20/34 t/20-pp.t ................ 21/34 t/20-pp.t ................ 22/34 t/20-pp.t ................ 23/34 t/20-pp.t ................ 25/34 t/20-pp.t ................ 26/34 t/20-pp.t ................ 27/34 t/20-pp.t ................ 28/34 t/20-pp.t ................ 31/34 t/20-pp.t ................ 33/34 t/20-pp.t ................ 34/34 t/20-pp.t ................ ok t/30-current_exec.t ...... # Please wait t/30-current_exec.t ...... 1/4 t/30-current_exec.t ...... 2/4 t/30-current_exec.t ...... ok t/40-packer_cd_option.t .. t/40-packer_cd_option.t .. 1/2 t/40-packer_cd_option.t .. ok t/90-rt59710.t ........... t/90-rt59710.t ........... 1/3 t/90-rt59710.t ........... 2/3 t/90-rt59710.t ........... ok All tests successful. Files=6, Tests=74, 128 wallclock secs ( 0.05 usr 0.01 sys + 119.98 cu +sr 7.65 csys = 127.69 CPU) Result: PASS make[1]: Entering directory `/home/XXXXXXXX/.cpan/build/PAR-Packer-1.0 +13-LFkx7e/myldr' Makefile:726: warning: overriding commands for target `.c.o' Makefile:332: warning: ignoring old commands for target `.c.o' make[1]: Nothing to be done for `test'. make[1]: Leaving directory `/home/XXXXXXXX/.cpan/build/PAR-Packer-1.01 +3-LFkx7e/myldr' RSCHUPP/PAR-Packer-1.013.tar.gz /usr/bin/make test -- OK

So I don't know if somebody is already passed by this error, but I'm not very good with CPAN so maybe there is an option I missed or simply something I didn't saw, please I'm asking for some help on this one...

Regards


In reply to Error "Can't locate PAR/StrippedPARL/Static.pm in @INC" while trying to use pp by HJO

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.