Ask Your Question

RPM Missing dependency

asked 2012-10-09 21:36:08 -0500

Bill gravatar image

updated 2014-09-30 11:14:04 -0500

mether gravatar image

I am creating a RPM which has the following shared objects: -->

When I am creating the RPM using rpmbuild, I see the rpm provides But, in the require section I see

In the makefile of the project I refer

When I am trying to install the rpm it gives an error "Missing dependency:" even though it is packaged as a link file pointing to

So the problem is somehow RPM is not considering that I am packaging (which is a link to

However, I installed the rpm using --nodeps option and everything is working fine.

So, my question is how should I modify to avoid getting the error of missing dependency.

To validate that the missing dependency is due to the link file, I changed from a link file to an actual shared object (cp and rpm does not giving the missing dependency error.

Can someone please help to tell me what I am missing and how to fix this missing dependency error in RPM. Thanks a lot in advance for your help and time.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-11 00:12:38 -0500

Remi gravatar image

You should not refer to (this should be only provided in the -devel package, and is not required at runtime)

RPM automatic dependency will use the soname of the library.

See the output of objdump of the library.

objdump -p libexample-1.0.1

SONAME give you what is provided, NEEDED give you what is required

edit flag offensive delete link more

Question Tools


Asked: 2012-10-09 21:36:08 -0500

Seen: 520 times

Last updated: Oct 11 '12