[英]Error loading Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found
I've installed minidcos using below command我已经使用以下命令安装了minidcos
curl --fail -L https://github.com/dcos/dcos-e2e/releases/download/2019.10.10.0/minidcos -o /usr/local/bin/minidcos && \
chmod +x /usr/local/bin/minidcos
when I try to find the version after install to check everything is working fine I get below error -当我在安装后尝试查找版本以检查一切是否正常时,出现以下错误 -
$ sudo minidcos --version
[21667] Error loading Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/_MEItueAuk/libpython3.7m.so.1.0)
I've libc.so.6 in the required path我在所需路径中有 libc.so.6
$ ls /lib/x86_64-linux-gnu/ | grep libc
libc-2.23.so
libcap.so.2
libcap.so.2.24
libcgmanager.so.0
libcgmanager.so.0.0.0
libcidn-2.23.so
libcidn.so.1
libcom_err.so.2
libcom_err.so.2.1
libcrypt-2.23.so
libcrypto.so.1.0.0
libcryptsetup.so.4
libcryptsetup.so.4.6.0
libcrypt.so.1
libc.so.6
Note: Os details -注意:操作系统详细信息 -
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
python details - python 详情-
$ python3 --version
Python 3.5.2
How can I fix this issue?我该如何解决这个问题?
You can fix this issue in two ways.您可以通过两种方式解决此问题。 First of all, check your GLIBC version by running this command:首先,通过运行以下命令检查您的 GLIBC 版本:
ldd --version
Most likely your GLIBC version is less than 2.28
.很可能您的 GLIBC 版本小于2.28
。 Now you could either upgrade the OS, I would say try Ubuntu 20.04 LTS, or you could lower down the minidcos
version.现在您可以升级操作系统,我会说尝试 Ubuntu 20.04 LTS,或者您可以降低minidcos
版本。 Here I would recommend using version 2019.06.19.0
which is compiled with the lower version of GLIBC.这里我推荐使用2019.06.19.0
版本,它是用较低版本的 GLIBC 编译的。
Remove the installed docker-compose:删除安装的docker-compose:
if you're in bash terminal:如果你在 bash 终端:
$ rm $(which docker-compose)
Or in fish terminal:或者在鱼码头:
> rm (which docker-compose)
Go to releases page of Docker Compose: Go到Docker的发布页面撰写:
https://github.com/docker/compose/releases https://github.com/docker/compose/releases
Download the source code (I've download the compose-2.2.3.tar.gz
file at the bottom of the list).下载源代码(我已经在列表底部下载了compose-2.2.3.tar.gz
文件)。 Extract its content and make your own build:提取其内容并制作您自己的构建:
cd $HOME/Downloads
tar -xvf compose-2.2.3.tar.gz
cd compose-2.2.3
make
The output compose-2.2.3
of compilation proccess will be placed into a created directory bin
.编译过程的output compose-2.2.3
会被放入创建的目录bin
中。 You can run the generated file to check if it's working:您可以运行生成的文件来检查它是否正常工作:
bin/docker-compose version
I use to run docker-compose from my $HOME/.local/bin
directory so I did:我曾经从我的$HOME/.local/bin
目录运行 docker-compose 所以我做了:
mv bin/docker-compose $HOME/.local/bin/
docker-compose version
That's it.就是这样。
The issue comes from our Python bump.问题来自我们的 Python 碰撞。 The official images only provide Debian Buster for 3.9 The former has glibc 2.28 while Ubuntu 18.04 only has 2.27.官方镜像只提供 Debian Buster for 3.9 前者有 glibc 2.28,而 Ubuntu 18.04 只有 2.27。
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.