I am using CentOS 5.
I have created an rpm spec file for a module. It has compile time dependency on a shared library, libavro to be precise.
To that end, I downloaded, built and installed libavro-1.5.1.so.21. It got installed at /usr/local/lib by default. I also edited ld.so.conf to include /usr/local/lib.
I executed ldconfig to regenerate ld cache.
After the above steps, I generated the rpm for my module.
When I try to install the rpm on the same machine I built it, I get failed dependency error:-
libavro-1.5.4.so.22()(64bit) is needed by mymodule-1.1-1.x86
I don’t understand why should it fail on a shared lib it linked to while building.
Try installing libavro-1.5.4 instead. rpm is looking for the logical name (soname) of the required libraries so that’s why the installation fails.