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

I tried to install the PAR::Packer module on a Ubuntu 10.04 system with Perl 5.10.1 from the cpan shell. The install failed; these seem to be the relevant error messages:
*** 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
and
make[1]: *** [par] Error 1 make[1]: Leaving directory `/home/bandi/.cpan/build/PAR-Packer-1.006-E +wCcyq/myldr' make: *** [subdirs] Error 2 RSCHUPP/PAR-Packer-1.006.tar.gz /usr/bin/make -- NOT OK Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: RSCHUPP/PAR-Packer-1.006.tar.gz : make NO
What do I do to fix this? Thanks for any help.

Edit: here's a bigger chunk of the console output:

Warning (usually harmless): 'YAML' not installed, will not store persi +stent state CPAN.pm: Going to build R/RS/RSCHUPP/PAR-Packer-1.006.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 Writing Makefile for the par program Writing Makefile for PAR::Packer Could not read '/home/bandi/.cpan/build/PAR-Packer-1.006-EwCcyq/META.y +ml'. Falling back to other methods to determine prerequisites cp lib/PAR/Packer.pm blib/lib/PAR/Packer.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/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.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/StrippedPARL/Dynamic.pm blib/lib/PAR/StrippedPARL/Dynamic.p +m 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 cp lib/PAR/StrippedPARL/Static.pm blib/lib/PAR/StrippedPARL/Static.pm make[1]: Entering directory `/home/bandi/.cpan/build/PAR-Packer-1.006- +EwCcyq/myldr' /usr/bin/perl sha1.c.PL sha1.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe - +fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFF +SET_BITS=64 -I/usr/lib/perl/5.10/CORE -DPARL_EXE=\"parl\" -O2 -g ma +in.c In file included from main.c:53: mktmpdir.c: In function ‘par_mktmpdir’: mktmpdir.c:190: warning: ignoring return value of ‘read’, declared wit +h attribute warn_unused_result mktmpdir.c:195: warning: ignoring return value of ‘read’, declared wit +h attribute warn_unused_result /usr/bin/perl ./file2c.pl ../script/par.pl my_par_pl.c load_my_par_pl +1 cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe - +fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFF +SET_BITS=64 -I/usr/lib/perl/5.10/CORE -DPARL_EXE=\"parl\" -O2 -g my +_par_pl.c cc main.o my_par_pl.o -s -Wl,-E -fstack-protector -L/usr/local/lib +-L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -o ./ +par /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make[1]: *** [par] Error 1 make[1]: Leaving directory `/home/bandi/.cpan/build/PAR-Packer-1.006-E +wCcyq/myldr' make: *** [subdirs] Error 2 RSCHUPP/PAR-Packer-1.006.tar.gz /usr/bin/make -- NOT OK Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: RSCHUPP/PAR-Packer-1.006.tar.gz : make NO

Replies are listed 'Best First'.
Re: Trouble installing PAR::Packer
by Utilitarian (Vicar) on Jul 29, 2010 at 12:40 UTC
    In an Ubuntu environment you can use the pre-built CPAN packages
    apt-cache search PAR
    And then
    sudo apt-get install libpar-packer-perl
    Note: you will have to enable universe packages as the package is part of universe
    pool/universe/libp/libpar-packer-perl/libpar-packer-perl_0.991-1_i386 +.deb
    Edited with details of how to guarantee success
    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
      Thank you, that worked.
Re: Trouble installing PAR::Packer
by syphilis (Archbishop) on Jul 29, 2010 at 12:37 UTC
    make[1]: *** [par] Error 1

    What came before that ? (You might as well give it to us in its entirety.)

    Cheers,
    Rob