Page 1 of 1

[SOLVED]Installing Chordpro via cpan

PostPosted: Jul 12th, '18, 11:21
by Gelsenbury
I'm trying to install Chordpro according to the instructions on their web site: https://www.chordpro.org/chordpro/Chord ... Linux.html

But the installation with CPAN fails. After a lengthy process, the last part of the output is:
Code: Select all
Test Summary Report
-------------------
t/01_prereq.t     (Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
t/02_load.t       (Wstat: 256 Tests: 7 Failed: 1)
  Failed test:  7
  Non-zero exit status: 1
Files=39, Tests=207, 10 wallclock secs ( 0.26 usr  0.05 sys +  9.31 cusr  0.56 csys = 10.18 CPU)
Result: FAIL
Failed 2/39 test programs. 2/207 subtests failed.
Makefile:1034: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
  JV/App-Music-ChordPro-0.96.tar.gz
one dependency not OK (PDF::API2); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports JV/App-Music-ChordPro-0.96.tar.gz


Does anyone know which packages I have to install to make this work? Or would it be easier to do a feature request for Chordpro via the Mageia bug tracker?

Re: Installing Chordpro via cpan

PostPosted: Jul 12th, '18, 13:32
by doktor5000
It does fail to install the PDF::API2 module:

Gelsenbury wrote:
Code: Select all
one dependency not OK (PDF::API2); additionally test harness failed
  /usr/bin/make test -- NOT OK



If you want to know why it fails, you would have to explicitly install PDF::API2. Maybe it's this issue: https://www.perlmonks.org/?node_id=1192312

That would be this package: https://madb.mageia.org/package/show/ap ... l-PDF-API2
In general I'd recommend using the CPAN modules provided by distro packages because we have a lot of them in our repos.

Totally apart from that, instead of manually installing modules from CPAN, better have RPM packages generated for that using cpan2dist, at least that is what I prefer.
See e.g. https://wiki.mageia.org/en/Perl_policy#Tools on how to build packages from those CPAN modules automatically. Although if you've never done RPM packaging, it's probably easier to just directly install from CPAN.

Re: Installing Chordpro via cpan

PostPosted: Oct 15th, '18, 00:33
by Gelsenbury
doktor5000 wrote:That would be this package: https://madb.mageia.org/package/show/ap ... l-PDF-API2


Thank you! After installing this package from your link, I was able to run the CPAN installation without any trouble.

I appreciate the point about creating RPMs. I'd much prefer to do this, but I don't have the skills.

Re: Installing Chordpro via cpan

PostPosted: Oct 15th, '18, 07:14
by doktor5000
Gelsenbury wrote:I appreciate the point about creating RPMs. I'd much prefer to do this, but I don't have the skills.

Well, it's automatically done for you, only need to input the command ...