简体   繁体   English

加载 Python lib '/tmp/_MEItueAuk/libpython3.7m.so.1.0' 时出错:dlopen: /lib/x86_64-linux-gnu/libc.so.6: 找不到版本 'GLIBC_2.28'

[英]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.

相关问题 无法导入 PyTorch/XLA 以在 CoLab 中使用 TPU 并出现 ImportError:/lib/x86_64-linux-gnu/libc.so.6:找不到版本“GLIBC_2.28” - Cannot import PyTorch/XLA for using TPU in CoLab with ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found Ubuntu 16.04 LTS 中的 Python 给出错误 /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.25' not found - Python in Ubuntu 16.04 LTS gives error /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.25' not found 导入错误:/lib/arm-linux-gnueabihf/libc.so.6:未找到版本“GLIBC_2.28” - ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found 错误加载 Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 在运行期间 docker-compose - Error loading Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 during running docker-compose python3: /lib/x86_64-linux-gnu/libm.so.6: 找不到版本“GLIBC_2.29”(python3 需要) - python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python3) /lib/x86_64-linux-gnu/libm.so.6:找不到版本“GLIBC_2.29”(/usr/local/lib/python3.7/dist-packages/pyexiv2/lib/libexiv2.so 需要)colab粘性物 - /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python3.7/dist-packages/pyexiv2/lib/libexiv2.so) colab goo 运行 python azure 函数应用程序时遇到错误:ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found - Facing error while running python azure function app: ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found vim:符号查找错误:/lib/x86_64-linux-gnu/libpython3.8.so.1.0:未定义符号:XML_SetHashSalt - vim: symbol lookup error: /lib/x86_64-linux-gnu/libpython3.8.so.1.0: undefined symbol: XML_SetHashSalt Python3:导入错误:/lib/x86_64-linux-gnu/libQt5Core.so.5:未找到版本“Qt_5.15” - Python3: ImportError: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found Python3.7:加载共享库时出错:libpython3.7m.so.1.0 - Python3.7: error while loading shared libraries: libpython3.7m.so.1.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM