如何修复“/lib/x86_64-linux-gnu/libc.so.6:未找到版本“GLIBC_2.27””?

如何修复“/lib/x86_64-linux-gnu/libc.so.6:未找到版本“GLIBC_2.27””?

当我尝试编译时chromeos_unittestschromium显示以下错误:

❯ autoninja -C out/Cros/ chromeos_unittests
ninja: Entering directory `out/Cros/'
[0/1] Regenerating ninja files
[10299/10299] LINK ./chromeos_unittests
./out/Cros/chromeos_unittests: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by ./out/Cros/chromeos_unittests)

(更准确地说,链接阶段抛出了错误消息。)

平台:

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:    16.04
Codename:   xenial

输出ldd --version

❯ ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu11.3) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

相关内容