You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to install this package with: rpm -ivh <package-y> I get this error:
error: Failed dependencies:
perl is needed by package-y.x86_64
Is this error because I listed the dependencies for the package using the -d option or does passing dependencies to fpm not make a difference in this case?
The text was updated successfully, but these errors were encountered:
It means (i assume), you have set up a dependency (perl in this case) for the package that is not met (not installed) on the system you are trying to install said package
Is perl installed on the target system? if not then install perl then try re-installing the package, i believe it should work. It it is, then i am sorry i cant help.
Try installing with the correct package manager for the distribution you are using that is, yum for CentOS or DNF for Fedora and this should also try to install the missing dependencies as opposed to using straight rpm
The problem was that I had the perl-interpreter installed by default on fedora. After realising this, I repackaged the rpm by changing the dependency from perl to perl-interpreter. Initially I ran perl --version and it returned a generic text showing I had perl installed rather than explicitely mentioning the perl interpreter.
I set up an
rpm
package usingfpm
like this:But when I try to install this package with:
rpm -ivh <package-y>
I get this error:Is this error because I listed the dependencies for the package using the
-d
option or does passing dependencies tofpm
not make a difference in this case?The text was updated successfully, but these errors were encountered: