【问题标题】:/usr/bin/python3.3 not found from brp-scl-python-bytecompile during mock build在模拟构建期间从 brp-scl-python-bytecompile 找不到 /usr/bin/python3.3
【发布时间】:2015-01-27 00:54:36
【问题描述】:

我正在尝试在 CentOS6 下构建 python33-python-virtualenv。我目前正在尝试重建当前版本:https://www.softwarecollections.org/repos/rhscl/python33/epel-6-x86_64/python33-python-virtualenv-1.10.1-1.el6.src.rpm

我收到一个错误:/usr/lib/rpm/brp-scl-python-bytecompile: line 47: /usr/bin/python3.3: No such file or directory

知道我做错了什么吗?

注意:我在模拟环境中执行此操作,将 scl 定义为 python33。

【问题讨论】:

  • 这是一个出色的第一个问题!标题比它需要的更通用(一般来说,标题应该足够具体,以至于只有遇到同样问题的人才会注意到),但是......欢迎来到!

标签: python centos rpm


【解决方案1】:

每次构建 python33 集合的子包时,都需要在 mock 中安装一个“python33-build”包。您需要修改模拟配置如下:

替换:config_opts['chroot_setup_cmd'] = 'install @buildsys-build'

与:config_opts['chroot_setup_cmd'] = 'install @build scl-utils-build python33-build'

通常,每次为该集合构建子包时,都需要安装一个“-build”包。 “-build”包是从元包源构建的。在这种特定情况下,它将来自 python33 源: https://copr.fedoraproject.org/coprs/rhscl/python33-el7/build/27227/

【讨论】:

    猜你喜欢
    • 2021-12-27
    • 2016-11-10
    • 1970-01-01
    • 2023-01-30
    • 2021-05-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-16
    相关资源
    最近更新 更多