My purpose is to distribute an already build libmy.so
as installable library through RPM.
Following is the snippet of the .spec file:
%define elX el5
%define arch x86_64
Name: my_rpm
Version: 1.0
Requires: <package name which installs libxx.so >
%prep
%define debug_package %{nil}
%build
%install
%files
%defattr(-, root, root)
/home/%{elX}/%{arch}/%{name}_%{version}/lib/libmy.so
At the time of compilation of libmy.so
, I am linking it against libxx.so
which is installed as part of another RPM.
While installing the RPM created as a part of above step 1, it gives following dependency error even if libxx.so
is installed on the machine
$ rpm -ivh *rpm
error: Failed dependencies:
libxx.so()(64bit) is needed by *rpm
We have tried the following things.
During the analysis we observed that the path where libxx.so
is located is not present in ld.so.conf
. However, adding an entry of path where libxx.so
is located did not help us.
Please let us know whether we need to perform any additional steps to remove this dependency error.