cat-in-136 / cargo-generate-rpm

Cargo helper command to generate a binary RPM package
MIT License
92 stars 19 forks source link

lib is needed by rpm install but it's already presented #122

Closed M5135213521asd3 closed 2 months ago

M5135213521asd3 commented 2 months ago

Hello, I have created rpm package by cargo generate-rpm. When I try to install it I got:

$ rpm -ivh generate-rpm/api-0.1.0-1.x86_64.rpm
error: Failed dependencies:
        libcassandra.so.2()(64bit) is needed by api-0:0.1.0-1.x86_64

but cargo run command working without issue and library is presented on the system:

$ ldd release/api
       ...
        libcassandra.so.2 => /usr/local/lib64/libcassandra.so.2 (0x00007f87fe600000)
      ...

--auto-req disabled will disable this check which solve the issue, but I will rather keep it enabled to warn me when library is missing.

cat-in-136 commented 2 months ago

In advance, please check rpm -q --whatprovides 'libcassandra.so.2()(64bit)'. If the output say no package provides libcassandra, your rpm file would not work. libcassandra shall be also managed by RPM, which is a specification of the RPM package manager itself.

M5135213521asd3 commented 2 months ago

it is working fine once library is installed by rpm... probaby can be closed... thankls