Sat Feb 15 07:02:24 2014: Request 93008 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR-Packer
Subject: install failure with ubuntu / puppet
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=93008 >
On 2014-02-14 19:31:37, mcandre wrote:
> Yep, that seems to work!
>
> https://github.com/mcandre/mcandre-
> ubuntu/blob/b0bb8924c48333c49e2b3970aa5a910404533ea0/manifests/default.pp#L347-
> L372
Great.
BTW, I assume the "perl::cpan::module" in your puppet files is
from module example42/perl on Puppet Forge?
This manifest uses "cpan ..." to install modules. Unfortunately it's exit code
is not reliable:
# Debian package libperl-dev NOT installed
$ cpan PAR::Packer ; echo "==> $?"
CPAN: Storable loaded ok (v2.41)
Reading '/home/roderich/.local/share/.cpan/Metadata'
...
CPAN.pm: Building R/RS/RSCHUPP/PAR-Packer-1.017.tar.gz
...
cc main.o -s -Wl,-E -fstack-protector -L/usr/local/lib
-L/usr/lib/perl/5.18/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -o ./par
/usr/bin/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
make[1]: *** [par] Error 1
make[1]: Leaving directory
`/home/roderich/.local/share/.cpan/build/PAR-Packer-1.017-kmq8nu/myldr'
make: *** [subdirs] Error 2
RSCHUPP/PAR-Packer-1.017.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
==> 0
But there's also "perl-module" which uses "cpanm ..." which gets it right:
$ cpanm PAR::Packer ; echo "==> $?"
--> Working on PAR::Packer
Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.017.tar.gz
... OK
Configuring PAR-Packer-1.017 ... OK
Building and testing PAR-Packer-1.017 ... FAIL
! Installing PAR::Packer failed. See
/home/roderich/.cpanm/work/1392465396.26842/build.log for details. Retry with
--force to force install it.
==> 1
Cheers, Roderich