centos7webfactiondeno

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


How to run Deno on Webfaction's CentOS 7 (64-bit)?

It gives an error:

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

Solution

  • Current Deno release 1.0.0 (latest today) is not compatible with CentOS 7.

    I tried on the latest distribution released on 27 April 2020:

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

    This issue 7 GLIBC_2.18 not found suggests that there should be a way to solve this problem, but the thread seems to be abandoned for a year.

    As of today Deno requires GLIBC_2.18, but unfortunately CentOS 7 is running 2.17, an old version of the gclib which is not enough:

    $ ldd --version
    ldd (GNU libc) 2.17
    

    If you need to run Deno on CentOS you'll need to use CentOS 8. Tested it and it works.

    From 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).

    It will not happen for CentOS 7. From 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.

    I wouldn't count on Deno — which is a new technology — to backport with old compilers. Consider upgrading your servers to CentOS 8.