[英]Error loading Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 during running docker-compose
I am having this problem running Docker Compose on my machines.我在我的机器上运行 Docker Compose 时遇到了这个问题。 I have switched machines and the problem still persists.我换了机器,问题仍然存在。
Error Message:错误信息:
[40335] Error loading Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1: cannot open shared object file: No such file or directory
My OS is fully updated.我的操作系统已完全更新。
I have tried the solutions listed here , here and here .我已经尝试过这里、 这里和这里列出的解决方案。
Here is the output of ldd --version
.这是ldd --version
的 output。
ldd (GNU libc) 2.35
Docker itself is functioning as expected. Docker 本身按预期运行。 Docker-compose, however, isn't.然而,Docker-compose 不是。 Trying to docker-compose up
or docker-compose --version
results in the error.尝试docker-compose up
或docker-compose --version
会导致错误。
install libxcrypt-compat maybe helps安装 libxcrypt-compat 可能会有所帮助
sudo pacman -S libxcrypt-compat
https://archlinux.org/packages/core/x86_64/libxcrypt-compat https://archlinux.org/packages/core/x86_64/libxcrypt-compat
I fix this issue by created a symbolic link from libcrypt.so
to libcrypt.so.1
我通过创建从libcrypt.so
到libcrypt.so.1
的符号链接来解决此问题
Link this: $ ln -s /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1
链接这个: $ ln -s /usr/lib/libcrypt.so /usr/lib/libcrypt.so.1
Hope it's worked for you希望它对你有用
This was my solution: delete directories./build and./dist and run pyinstaller again.这是我的解决方案:删除目录./build 和./dist 并再次运行 pyinstaller。
I noticed that if./build already exists, Pyistaller will reuse the same./build.我注意到如果./build 已经存在,Pyistaller 将重用相同的./build。 Any previous issues in./build will persist, sometimes with new error messages, because the directory was not recreated. ./build 中的任何先前问题都会持续存在,有时还会出现新的错误消息,因为没有重新创建目录。 Deleting./build leads to a new./build being created next time you run pyinstaller.删除 ./build 会在您下次运行 pyinstaller 时创建一个新的 ./build。
This was the original error I was getting.这是我得到的原始错误。
$ ./name_of_executable_created_by_pyinstaller
[26645] Error loading Python lib '/tmp/_MEITnO6JV/libpython3.7m.so': dlopen: /tmp/_MEITnO6JV/libpython3.7m.so: cannot open shared object file: No such file or directory
I was running on manjaro.我在 manjaro 上跑步。 I had to remove docker-compose, install it back and symlink to it's actual location.我不得不删除 docker-compose,将其安装回去并将符号链接到它的实际位置。 I don't know if this works on other distros.我不知道这是否适用于其他发行版。
sudo rm $(which docker-compose)
Now install it back;现在安装回去;
sudo pacman -S docker-compose
Finally create a symlink;最后创建一个符号链接;
sudo ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose
Confirm it's fine;确认没问题;
docker-compose --version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.