简体   繁体   English

如何告诉rpm查看特定目录的依赖关系?

[英]How to tell rpm to look into specific directory for dependencies?

I have an rpm package that needs to be installed on SLES 11. The installtion fails due to unresolved dependecies. 我有一个rpm软件包,需要在SLES 11上安装。由于未解决的依赖性导致安装失败。

$ rpm -ivh xpra-0.3.11-1.x86_64.rpm
warning: xpra-0.3.11-1.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID f18ad6bb
error: Failed dependencies:
        libpython2.7.so.1.0()(64bit) is needed by xpra-0.3.11-1.x86_64
        python(abi) = 2.7 is needed by xpra-0.3.11-1.x86_64

When checked, default python installation on SLES 11 was 2.6. 选中后,SLES 11上的默认python安装为2.6。 I couldn't find python 2.7 rpm package for SLES 11. I have installed python 2.7 by building the source. 我找不到SLES 11的python 2.7 rpm软件包。我已经通过构建源安装了python 2.7。

Now, whenever I try to install the same software, I am the getting same errors. 现在,每当我尝试安装相同的软件时,都会遇到相同的错误。

How to tell rpm package manager to look into specific directory to find the required dependencies?? 如何告诉rpm包管理器查看特定目录以找到所需的依赖项?

您不能rpm唯一知道的依赖项是使用rpm安装的。

You may download a pre-built python 2.7 RPM from this site and install it with eg python-rpm -i 2.7.3-3.6.1.x86_64.rpm . 您可以从此站点下载预构建的python 2.7 RPM,并使用python-rpm -i 2.7.3-3.6.1.x86_64.rpm Bear in mind that I'm not a SLES user, so my suggestion is a kind of a shot in the dark. 请记住,我不是SLES用户,所以我的建议是在黑暗中拍摄。

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

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