Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

针对Linux x86_64 兼容性有问 #42

Closed
sbwml opened this issue Aug 12, 2021 · 1 comment
Closed

针对Linux x86_64 兼容性有问 #42

sbwml opened this issue Aug 12, 2021 · 1 comment

Comments

@sbwml
Copy link
Contributor

sbwml commented Aug 12, 2021

你好!

本项目之前在开发期间为了方便使用,我也将其编译成单文件二进制程序。今天原本想更新源码重新编译二进制文件,发现 releases 目前已经提供三大平台的可执行文件。

但是我发现一个问题,Releases 上的 linux 86_64 平台的是基于glibc较高版本的Python编译出来的,它无法在比构建平台低版本的glibc环境下运行(如 CentOS 7 x86_64),这无疑大范围降低了程序的兼容性,CentOS 7 目前在云计算平台依然具备不可替代的位置,使用频率还是很高的。

请问作者可否在构建 Linux x86_64 平台的程序时,使用glibc 版本更低的系统来构建呢?因为glibc 具备向下兼容的特性,高版本也同样允许运行低版本构建的程序。

这里是我自己编译的二进制程序,经测试,Ubuntu 20、CentOS 7 & 8、Debian 10 等系统均可正常工作。

https://media.cooluc.com/source/aliyunDrive-cli

@sbwml
Copy link
Contributor Author

sbwml commented Aug 12, 2021

基于glibc 2.17 构建的程序可行性测试

程序地址:https://media.cooluc.com/source/aliyunDrive-cli


Ubuntu 20.04 运行测试

aliyunpan-cli

glibc version


CentOS 7 运行测试

aliyunpan-cli

glibc version

wxy1343 added a commit that referenced this issue Aug 12, 2021
@wxy1343 wxy1343 closed this as completed Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants