我的 RPM 包需要 2 个已安装的共享库
我正在寻找有关制作 rpm 包的帮助。
我刚刚使用 rpmbuild 创建了我的第一个 RPM 包。 这个包很简单。它只需复制几个配置文件和一个可执行文件。
我无法安装此 .rpm,因为可执行文件需要使用 2 个共享库。
这些库已安装,但它们未与另一个 .rpm 包链接,因为我是从我的一个项目构建它们的。它们位于 /usr/myproject/lib 目录中。
我尝试将符号链接放置到 /lib 和 /usr/lib,还尝试从包含 /usr/myproject/lib 目录的 .conf 文件运行“ldconfig”更新,并尝试更新 LD_LIBRARY_PATH env 变量而不使用任何成功。
我知道我可以使用 -nodeps 命令行选项忽略依赖项,但我希望在下一步中创建我自己的 yum 存储库,但如果依赖项未满足,则 yum 不允许安装包。
我还希望保留 rpmbuild 的自动依赖功能。
提前致谢。
I'm looking for help about making rpm packages.
I just created my first RPM package with rpmbuild.
This package is simple. It has just to copy several config files and one executable.
I cannot install this .rpm because 2 shared librairies used by the executable are required.
These librairies are already installed but they are not linked with another .rpm package because I build them from one of my projects. There are located in the /usr/myproject/lib directory.
I tried to put symbolic links to /lib and /usr/lib, tried also to run a "ldconfig" update from a .conf file which contains the /usr/myproject/lib directory, and tried to update the LD_LIBRARY_PATH env variable without any success.
I know I can ignore dependencies using the -nodeps command line option but I'd like in the next step to create my own yum repository but yum do not allow to install a package if the dependencies are not fulfilled.
I would also prefer to keep the automatic dependency feature of rpmbuild enabled.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将这 2 个库打包到另一个 RPM 中,然后您可以在一次 rpm -i 调用中安装这两个 RPM。
Package these 2 libraries in another RPM, then you can install both RPMs in one rpm -i call.