运行进程时报错
./main: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./main)
./main: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./main)
./main: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./main)
./main: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./main)
原因:在高版本ubuntu编译,在低版本运行(例如22.04编译,20.04运行)
解决方法:
低版本运行环境安装新版本libc6
/etc/apt/sources.list写入
deb http://mirrors.aliyun.com/ubuntu/ jammy multiverse
sudo apt update
sudo apt install libc6
标签:x86,lib,gnu,GLIBC,version,64,linux,main
From: https://www.cnblogs.com/umichan0621/p/18143527