Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed dependencies when installing rpm #1521

Open
ccaneke opened this issue Jul 4, 2018 · 2 comments
Open

Failed dependencies when installing rpm #1521

ccaneke opened this issue Jul 4, 2018 · 2 comments

Comments

@ccaneke
Copy link

ccaneke commented Jul 4, 2018

I set up an rpm package using fpm like this:

fpm -s dir -t rpm -n <package-y> -v 1.0.0 -C /tmp/installdir \
-d perl \
-d "python >= 2.7"

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?

@mathieu-aubin
Copy link

mathieu-aubin commented Jul 4, 2018

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

@ccaneke
Copy link
Author

ccaneke commented Jul 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants