[CentOS] CPAN not working, or is it?
Pete Biggs
pete at biggs.org.uk
Mon Mar 11 16:42:21 UTC 2019
On Mon, 2019-03-11 at 15:48 +0000, Gary Stainburn wrote:
> On Monday 11 March 2019 14:28:38 Pete Biggs wrote:
> > > However, as I went for bigger modules, anything that had dependences
> > > were then failing as the dependencie were installed OK but then did not
> > > appear to be available.
> > A number of things you can do. The sort of recommended way is to
> > package the perl modules into an RPM and install them that way (so that
> > the package managers know about them and can resolve conflicts). There
> > are progs to do it for - look for cpanspec.
>
> I have found the following page to install using cpanspec, and all went well
> until I actually want to build the RPM's. Doesn't matter what I try to build
> I get the same problems with the man pages being missing, and nothing gets
> built.
I'm afraid I'm not expert on these things - I tend to do the naughty
thing of using CPAN to install in system locations!
But I think the .spec file generated, or the variables used for the
build are not quite correct. You can see here:
>
> Manifying blib/man3/strictures::extra.3pm
> Manifying blib/man3/strictures.3pm
> Installing /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/lib/perl5/strictures.pm
> Installing /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/lib/perl5/strictures/extra.pm
> Installing /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/man/man3/strictures::extra.3pm
> Installing /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/root/perl5/man/man3/strictures.3pm
that it's installing into ..../root/perl5/ whereas here:
>
> Processing files: perl-strictures-2.000006-1.el7.noarch
> error: File not found by
> glob: /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/perl5/vendor_perl/*
> error: File not found by
> glob: /root/rpmbuild/BUILDROOT/perl-strictures-2.000006-1.el7.x86_64/usr/share/man/man3/*
it is trying to package ..../usr/share/
I think you need the help of someone who knows about .spec files!
P.
More information about the CentOS
mailing list