【问题标题】:package python to be installed to custom location要安装到自定义位置的包 python
【发布时间】:2015-11-14 14:32:47
【问题描述】:

我的目标是构建一个可以安装到 rhel 6 盒子上的自定义位置的 python rpm。

我已经从https://dl.iuscommunity.org/pub/ius/stable/Redhat/6/SRPMS/python34u-3.4.3-2.ius.el6.src.rpm获取源代码

带有/tmp/python/new_install前缀的rpmbuild成功打包。 当我尝试安装 rpm 时,我遇到了循环依赖。

安装 ABCpython34u-3.4.3-2.ius.el6.x86_64.rpm 给出

error: Failed dependencies:
    ABCpython34u-libs(x86-64) = 3.4.3-2.ius.el6 is needed by ABCpython34u-3.4.3-2.ius.el6.x86_64
    libpython3.4m.so.1.0()(64bit) is needed by ABCpython34u-3.4.3-2.ius.el6.x86_64

安装 ABCpython34u-libs-3.4.3-2.ius.el6.x86_64.rpm 给出

error: Failed dependencies:
    /tmp/python/new_install/bin/python3.4 is needed by ABCpython34u-libs-3.4.3-2.ius.el6.x86_64

非常感谢任何指导。

更新:

/bin/rpm -i --noscripts -v ABCpython34u-libs-3.4.3-2.ius.el6.x86_64.rpm ABCpython34u-3.4.3-2.ius.el6.x86_64.rpm 2>&1
error: Failed dependencies:
    libpython3.4m.so.1.0()(64bit) is needed by ABCpython34u-3.4.3-2.ius.el6.x86_64

$ rpm -q --provides -p ABCpython34u-libs-3.4.3-2.ius.el6.x86_64.rpm|grep libpython3.4m.so.1.0
libpython3.4m.so.1.0()(64bit)(ABC)

【问题讨论】:

  • 提供列表的格式是什么?由于(ABC),它似乎无法识别
  • 你在说什么包装工具?您在构建 RPM 时也使用它吗?您是否将它用于这两个 RPM?
  • 不,我只是用它来部署,我使用 rpmbuild 构建它
  • 我不确定(ABC) 的要求是什么,但这似乎是问题所在。你是怎么弄到那里的?我在任何提供条目的标准包上都看不到类似的东西。 (我假设FDS 是此处的实际前缀,而您只是在该错误行中错过了它?)
  • 如果您自定义 find-provides 为您的符号输出自定义提供条目,并且没有更新 find-requires 以进行相同的修改,那么是的,这似乎肯定会导致此问题。

标签: python-3.x build rpm rpmbuild rpm-spec


【解决方案1】:

您只需要安装在一起: P>

  yum install ./ABCpython34u-3.4.3-2.ius.el6.x86_64.rpm ./ABCpython34u-libs-3.4.3-2.ius.el6.x86_64.rpm

但你在做什么(在自定义位置Python)的很可能是错误的。如果你想有RHEL6最近的Python框中,您很可能希望软件集合: P>

https://www.softwarecollections.org/en/

https://www.softwarecollections.org/en/scls/rhscl/rh-python34/

【讨论】:

  • 我没有根到更新系统蟒。所以我推出我自己的。 SPAN>
  • 然后只需使用:转-i --noscripts ./ABCpython34u-3.4.3-2.ius.el6.x86_64.rpm ./ABCpython34u-libs-3.4.3-2.ius.el6 .x86_64.rpm 跨度>
  • @ technocrattobe你是如何打算,而不根安装RPM包?软件的集合不更新系统蟒蛇。他们补充系统蟒蛇。 SPAN>
  • 有1A中的工具,围绕转套,基本上移交到的转速之前,名称间隔检查(前缀ABC)。跨度>
猜你喜欢
  • 1970-01-01
  • 2022-10-07
  • 2016-05-17
  • 2017-06-11
  • 2013-01-22
  • 1970-01-01
  • 2015-06-05
  • 2019-08-05
  • 1970-01-01
相关资源
最近更新 更多