简体   繁体   English

RPM bin对lib内共享库的依赖

[英]RPM bin Dependency on shared library inside lib

I am having following structure 我有以下结构

bin/
   bin 1 
   bin 2 

lib / 
     lib1 
     lib2 

Where lib1 and lib2 are dynamic library. 其中lib1和lib2是动态库。 and bin1 and bin2 are depending on lib1 and lib2. bin1和bin2依赖于lib1和lib2。

When I am trying to install rpm I am getting error 当我尝试安装rpm时,我收到错误

app-0.0.1-1.x86_64 requires lib1.so()(64bit) 

which I am already giving inside lib1 folder. 我已经在lib1文件夹中给出了。 What flags should I set so it can look for the library inside lib folder ? 我应该设置什么标志,以便它可以在lib文件夹中查找库?

One of the possible reasons could be that the library is not installed using rpm . 可能的原因之一可能是未使用rpm安装库。 You may check it using the following options: 您可以使用以下选项进行检查:

rpm -q --whatprovides /fullpath/lib/lib1.so

Not sure about (64bit)-part of the warning, perhaps the installed one is 32-bit. 不确定(64位) - 部分警告,也许安装的是32位。

If you're absolutely sure that the correct library is installed you may try --nodeps option of rpm . 如果您完全确定安装了正确的库,则可以尝试使用rpm --nodeps选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM