首先,我谷歌了很多,但没有发现与我的情况,我有一个ELF可执行文件,我试图运行它在我的Ubuntu,我改变了权限(chmod +x file
),当我运行它,这个错误会显示出来
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by myFile)
当我使用ld命令时,它就会出现在我面前。
myFile(.eh_frame); no .eh_frame_hdr table will be created
当我试图升级GLIBC的时候,它说它是最新的
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.31-0ubuntu9.7).
libc6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 215 not upgraded.
然后,我尝试从https://packages.ubuntu.com/impish/amd64/libc6/download手动安装deb文件,但这在我看来是这样的:
dpkg: regarding libc6_2.34-0ubuntu3.2_amd64.deb containing libc6:amd64:
libc6:amd64 breaks fakeroot (<< 1.25.3-1.1ubuntu2~)
fakeroot (version 1.24-1) is present and installed.
dpkg: error processing archive libc6_2.34-0ubuntu3.2_amd64.deb (--install):
installing libc6:amd64 would break fakeroot, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
libc6_2.34-0ubuntu3.2_amd64.deb
发布于 2022-04-22 15:58:26
免责声明:我不是linux专业人士,只是找到了一种解决自己问题的方法-- glibc找不到错误消息:
也许您不能使用这个二进制文件,因为它是用gcc-11编译的,而您的gcc版本的linux发行版和版本仅为antian-9,因此只提供了glibc_2.31 (我猜)。您可以尝试从源代码中自己编译程序。我不得不在新的河豚版本15中这样做,它也使用更新的glibc_2.32/2.33/2.34,而我的linux-mint没有提供这种功能。但是,从源头编译就像一种魅力。也许这是你的选择。
https://stackoverflow.com/questions/71940179
复制相似问题