gpt4 book ai didi

pip - 为 centos6 内核的奇异容器安装 glibc 2.14 和 2.17

转载 作者:行者123 更新时间:2023-12-04 19:35:25 24 4
gpt4 key购买 nike

我正在尝试构建一个用于运行 centOS 6 的集群的奇异容器。我需要的一些包在 python 中。问题是pip安装需要glibc-2.14和glibc-2.17。我根据 here 安装了那些和 here .
这是我的定义文件:

Bootstrap: docker
From: conda/miniconda3-centos6

%files

conda_env.yml
glibc-2.14
CentOS-Base.repo
glibc-2.17-55.el6.x86_64.rpm
glibc-common-2.17-55.el6.x86_64.rpm
glibc-devel-2.17-55.el6.x86_64.rpm
glibc-headers-2.17-55.el6.x86_64.rpm
glibc-static-2.17-55.el6.x86_64.rpm
glibc-utils-2.17-55.el6.x86_64.rpm
nscd-2.17-55.el6.x86_64.rpm

%post

rm /etc/yum.repos.d/CentOS-Base.repo
mv CentOS-Base.repo /etc/yum.repos.d/

yum install -y wget bzip2 gcc perl bzip2-devel gd

HOME="$PWD"

cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j8
make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib

cd "$HOME"

rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \
glibc-common-2.17-55.el6.x86_64.rpm \
glibc-devel-2.17-55.el6.x86_64.rpm \
glibc-headers-2.17-55.el6.x86_64.rpm \
glibc-static-2.17-55.el6.x86_64.rpm \
glibc-utils-2.17-55.el6.x86_64.rpm \

/usr/local/bin/conda env create -f conda_env.yml
glibc-2.14 安装良好,但安装 glibc-2.17 被证明是困难的。安装失败并出现以下错误:
warning: glibc-2.17-55.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 73ec361c: NOKEY
Preparing... ########################################### [100%]
1:glibc-common ########################################### [ 17%]
2:glibc ########################################### [ 33%]
/usr/sbin/glibc_post_upgrade: While trying to execute /usr/sbin/iconvconfig.x86_64 child terminated abnormally
warning: %post(glibc-2.17-55.el6.x86_64) scriptlet failed, exit status 115
error: %pre(glibc-headers-2.17-55.el6.x86_64) scriptlet failed, signal 11
error: install: %pre scriptlet failed (2), skipping glibc-headers-2.17-55.el6
3:glibc-devel ########################################### [ 50%]
error: %post(glibc-devel-2.17-55.el6.x86_64) scriptlet failed, signal 11
4:glibc-static ########################################### [ 67%]
5:glibc-utils ########################################### [ 83%]
FATAL: While performing build: while running engine: exit status 6
与 2.14 一样安装 glibc-2.17 会导致调用 python 时出现段错误。有经验的人可以就可能的解决方案提供一些见解吗?或者,如果有带有更新 glibc 的 centOS 6 容器?
提前致谢!

最佳答案

The problem is that installing by pip requires glibc-2.14 and glibc-2.17.


不可能同时需要 GLIBC-2.14 和 GLIBC-2.17 ——这些版本通常不会在单个系统上共存。
安装 GLIBC-2.17 应该满足所有要求(它同时提供 GLIBC-2.17 和所有以前的版本符号)。

关于pip - 为 centos6 内核的奇异容器安装 glibc 2.14 和 2.17,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69028347/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com