简体   繁体   English

/lib64/libc.so.6:未找到版本“GLIBC_2.14” - 使用 pyinstaller 构建应用程序时出错

[英]/lib64/libc.so.6: version `GLIBC_2.14' not found - error from the application build using pyinstaller

I have used pyinstaller to build my python scripts to run as stand alone application without any dependencies of python installation or modules installation.我已经使用pyinstaller构建了我的 python 脚本以作为独立应用程序运行,而没有 python 安装或模块安装的任何依赖关系。 But now i am getting /lib64/libc.so.6: version `GLIBC_2.14' not found (required by) error in different servers with my build application.但是现在我在我的构建应用程序的不同服务器中收到 /lib64/libc.so.6: version `GLIBC_2.14' not found (required by) 错误。

I have read suggestions over internet that, i need to update glibc version or i should re-compiled as per server version.我已经阅读了互联网上的建议,我需要更新 glibc 版本,或者我应该根据服务器版本重新编译。 But that is not possible in my case, that is why i have built stand alone application with pyinstaller.但这在我的情况下是不可能的,这就是我用 pyinstaller 构建独立应用程序的原因。

Please suggest solution.请提出解决方案。 I need to run this application in 'n' no.of servers, so upgrading glibc is not possible.我需要在“n”个服务器中运行此应用程序,因此无法升级 glibc。 is there any way to add this library file in build package?有没有办法在构建 package 中添加这个库文件?

But that is not possible in my case但在我的情况下这是不可能的

Yes, it is.是的。

You must either build the application to match your desired target environment, or you must make your target environment satisfy the requirements of that applicaition you built.您必须构建应用程序以匹配所需的目标环境,或者必须使目标环境满足您构建的应用程序的要求。

One way to make the application match target environment is to build it in a chroot or a docker container that matches the target.使应用程序匹配目标环境的一种方法是在匹配目标的 chroot 或 docker 容器中构建它。

that is why i have built stand alone application with pyinstaller.这就是我使用 pyinstaller 构建独立应用程序的原因。

You are not building a "stand alone" application.不是在构建“独立”应用程序。 You are building something that depends on GLIBC-2.14, and trying to run it on a system that doesn't have that (or newer) version of GLIBC.您正在构建依赖于 GLIBC-2.14 的东西,并试图在没有该(或更新)版本的 GLIBC 的系统上运行它。

I need to run this application in 'n' no.of servers, so upgrading glibc is not possible我需要在“n”个服务器中运行此应用程序,因此无法升级 glibc

Sure it is.是的。 You are running your application on ancient GLIBC version (version 2.14 was released in 2011).您在古老的 GLIBC 版本(2.14 版于 2011 年发布)上运行您的应用程序。 Since then, many CVEs have been discovered and fixed.从那时起,已经发现并修复了许多 CVE。 By continuing to use ancient version, you are exposing your company to significant risks.通过继续使用旧版本,您使您的公司面临重大风险。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ImportError:/lib64/libc.so.6:导入张量流后找不到版本`GLIBC_2.15' - ImportError: /lib64/libc.so.6: version `GLIBC_2.15' not found after importing tensorflow /lib64/libc.so.6:在 Aws Lambda 服务器中找不到版本“GLIBC_2.22” - /lib64/libc.so.6: version `GLIBC_2.22' not found in Aws Lambda Server 在CentOS上导入mxnet时,获取:OSError:/lib64/libc.so.6:找不到版本“ GLIBC_2.17” - when import mxnet on CentOS, get: OSError: /lib64/libc.so.6: version `GLIBC_2.17' not found 加载 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 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 无法导入 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 未找到 OpenSuse 11 版本“GLIBC_2.14” - OpenSuse 11 version `GLIBC_2.14' 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 ImageMagick:OSError:/lib/libc.so.6:未找到版本“GLIBC_2.XX” - ImageMagick: OSError: /lib/libc.so.6: version `GLIBC_2.XX' not found 我可以在没有系统管理员的情况下修复“找不到版本 GLIBC_2.14”错误吗? - Can I fix a "version GLIBC_2.14 not found" error without being sysadmin?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM