How to mention rpm to look for dependent perl modules in the system

By default rpm seeks the perl components inside the rpm itself and also tosses dependence mistake if it is not located. For eg., I have a perl manuscript in the rpm that makes use of Crypt::DES perl component. I have that perl component in the system (/usr/local/lib64/perl5/Crypt/DES.pm) and also this directory site is consisted of in @INC When I attempt to install the rpm package:

[[email protected] x86_64]$ rpm -ivh abc-1-1.el6.x86_64.rpm

error: Failed dependencies:

...(some other perl modules)

perl(Crypt::DES) is needed by abc-1.el6.x86_64

...(some other modules)

But when I place that perl component (DES.pm) inside the resource of the rpm, it does not show the dependence mistake for that perl component.

And also my inquiry is just how to define in rpm (may remain in specification documents) to seek perl dependences in the system additionally?

3
2022-07-25 20:45:23
Source Share
Answers: 0