首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误/lib/x86_64-linux-gnu/libc.so.6:版本`GLIBC_2.34‘未找到

错误/lib/x86_64-linux-gnu/libc.so.6:版本`GLIBC_2.34‘未找到
EN

Stack Overflow用户
提问于 2022-04-20 13:02:44
回答 1查看 41.6K关注 0票数 5

首先,我谷歌了很多,但没有发现与我的情况,我有一个ELF可执行文件,我试图运行它在我的Ubuntu,我改变了权限(chmod +x file),当我运行它,这个错误会显示出来

代码语言:javascript
运行
复制
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by myFile)

当我使用ld命令时,它就会出现在我面前。

代码语言:javascript
运行
复制
myFile(.eh_frame); no .eh_frame_hdr table will be created

当我试图升级GLIBC的时候,它说它是最新的

代码语言:javascript
运行
复制
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文件,但这在我看来是这样的:

代码语言:javascript
运行
复制
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
EN

回答 1

Stack Overflow用户

发布于 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没有提供这种功能。但是,从源头编译就像一种魅力。也许这是你的选择。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71940179

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档