CentOS 7 上的 Deno:'GLIBC_2.18' 未找到

Deno on CentOS 7: 'GLIBC_2.18' not found

如何运行Deno on Webfaction的CentOS 7(64位)?

报错:

deno: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by deno)

当前的 Deno 版本 1.0.0(今天最新)与 CentOS 7 不兼容。

我试用了 2020 年 4 月 27 日发布的最新发行版:

$ cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

这个issue7 GLIBC_2.18 not found提示应该有办法解决这个问题,不过跟帖好像弃了一年

截至今天,Deno 需要 GLIBC_2.18,但不幸的是 CentOS 7 运行ning 2.17,旧版本的 gclib 还不够:

$ ldd --version
ldd (GNU libc) 2.17

如果你需要在 CentOS 上 运行 Deno,你需要使用 CentOS 8。测试了它并且有效。

来自How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found”

That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).

CentOS 7 不会发生这种情况。来自glibc_2.18 on Centos 7:

No. Never going to happen. We ship glibc 2.17 as part of CentOS 7 and that will never change. It's part of the basic RHEL standards that stuff like this does not change within a major version.

我不指望 Deno——这是一项新技术——可以向后移植旧的编译器。考虑将您的服务器升级到 CentOS 8。

对我来说,我无法升级 OS,因为它由 IT 部门管理。似乎有一个解决方法。我发现以下线程中的 link 确实有效。

https://github.com/denoland/deno/issues/1658#issuecomment-632986792