This error happens when you install Node on an operating system that has a version of GLIBC that is lower than Node can support. For example, Node v18 supports GLIBC v2.7 or later. When you attempt to install Node v18.x on any Linux OS that has GLIBC v2.6 or lower, you will get such errors.

To see the version of GLIBC that your operating system has, execute the ldd command on the terminal:

Copy$ ldd --version

I can suggest three options to resolve this issue:

  1. Either install Node from source code. This will allow you to recompile
  2. Or install an older version of Node that your OS can support
  3. Or upgrade your Linux OS to a newer version.

Reference: Install Node from source code

Answer from Bruce Malaudzi on Stack Overflow
🌐
GitHub
github.com › nodejs › node › issues › 52241
Node.js is showing error "node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)" · Issue #52241 · nodejs/node
March 28, 2024 - check node --version cmd which ... GLIBC_2.27' not found (required by node) node: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by node) node: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by node) node: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by node) node: /lib64/libc.so.6: version ...
Author   nodejs
Discussions

jffi9396993929588479283.so: /lib64/libc.so.6: version `GLIBC_2.27' not found
There was an error while loading. Please reload this page · The error message is very weird More on github.com
🌐 github.com
61
November 22, 2022
Sagemaker: OSError: /lib64/libm.so.6: version `GLIBC_2.27' not found
I have paid support, but decided to open post here too. Sometimes paid support doesn't know paid support for various reasons. Basically, I have want to use `pyg_lib` and import in my notebook. H... More on repost.aws
🌐 repost.aws
1
0
September 26, 2024
glibc - GLIBC_2.27 not found Ubuntu 16.04 - Stack Overflow
One of the software I want to run needs GLIBC_2.27, and all I see is this error on the console: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.27" not found When I run this command ldd --versio... More on stackoverflow.com
🌐 stackoverflow.com
`/lib64/libm.so.6: version 'GLIBC_2.27' not found` in my self-hosted runners (Amazon Linux 2)
Hi @dawidd6. First of all, thanks for creating and maintaining this useful action. We are using this action in our Amazon Linux 2 self-hosted runners. Recently, we've hit the following error me... More on github.com
🌐 github.com
21
December 13, 2023
🌐
GitHub
github.com › dmlc › dgl › issues › 7046
OSError: /lib64/libm.so.6: version `GLIBC_2.27' not found · Issue #7046 · dmlc/dgl
January 30, 2024 - I did the following steps: conda create --name dgl -c conda-forge python=3.11 conda install -c dglteam/label/cu121 dgl conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia conda activate dgl import dgl And ...
Author   dmlc
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 28833118886162-GLIBC-2-27-not-found
GLIBC-2.27 not found – IDEs Support (IntelliJ Platform) | JetBrains
August 17, 2025 - I found the solution — I had missed the --set-interpreter step. After adding it, the "glibc 2.27 not found" error no longer appears.
🌐
GitHub
github.com › jnr › jffi › issues › 138
jffi9396993929588479283.so: /lib64/libc.so.6: version `GLIBC_2.27' not found · Issue #138 · jnr/jffi
November 22, 2022 - jffi9396993929588479283.so: /lib64/libc.so.6: version `GLIBC_2.27' not found#138 · #155 · jnr/jnr-ffi#326 · Copy link · Milestone · 1.3.13 · kingluo · opened · on Nov 22, 2022 · Issue body actions · The error message is very weird. In Centos7 with openjdk 11: ...
Author   jnr
🌐
Medium
medium.com › @python-javascript-php-html-css › fixing-the-node-js-glibc-2-27-error-on-github-actions-upload-artifact-and-checkout-problems-cb5f76d3400b
Fixing the Node.js GLIBC_2.27 Error on GitHub Actions: Upload-Artifact and Checkout Problems
October 30, 2024 - # Add a script to your workflow to dynamically install the GLIBC library version if missing jobs: job_name: runs-on: ubuntu-22.04 steps: - name: Checkout Code uses: actions/checkout@v4 - name: Install GLIBC run: | sudo apt-get update sudo apt-get install -y libc6=2.27-3ubuntu1.5 # Specific GLIBC version - name: Run Unit Tests run: | chmod +x .github/scripts/credentials-config.sh .github/scripts/credentials-config.sh scala_conf $SOME_CREDENTIAL_DETAILS - name: Upload Artifact if: always() uses: actions/upload-artifact@v4
🌐
Super User
superuser.com › questions › 1659923 › how-to-fix-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-27-not-found
ubuntu - How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found”? - Super User
June 30, 2021 - Pleas ellaborate a bit more. What are you trying to do, when you get this error? What is the output of ldd --version? AND PLEASE DON'T TRY TO AIMLESSLY UPGRADE OR DOWNGRADE GLIBC.
Find elsewhere
🌐
Arm Community
community.arm.com › support-forums › f › compilers-and-libraries-forum › 53391 › lib64-libc-so-6-version-glibc_2-27-not-found-required-by-gcc-linaro-11-3-1-2022-06-x86_64_arm-linux-gnueabihf
lib64/libc.so.6: version `GLIBC_2.27' not found ...
August 23, 2022 - Have a question about working on Arm technology? Browse our support forums for solutions to your questions, answer questions from fellow community members and get help from Arm experts.
🌐
GitHub
github.com › dawidd6 › action-download-artifact › issues › 262
`/lib64/libm.so.6: version 'GLIBC_2.27' not found` in my self-hosted runners (Amazon Linux 2) · Issue #262 · dawidd6/action-download-artifact
December 13, 2023 - /opt/runner/externals/node20/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /opt/runner/externals/node20/bin/node) /opt/runner/externals/node20/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/runner/externals/node20/bin/node)
Author   dawidd6
🌐
GitHub
github.com › isl-org › Open3D › issues › 1307
ImportError: /lib64/libm.so.6: version 'GLIBC_2.27' not found · Issue #1307 · isl-org/Open3D
November 8, 2019 - ImportError: /lib64/libm.so.6: version 'GLIBC_2.27' not found When I tried to install Open3D from source on a ppc64le system, I was able to compile and install it using make, but I wasn't able to import it and use it in Python because of a GLIBC issue. It seems that Open3D works for GLIBC versions up to 2.27 but not 2.28, since the GLIBC version is 2.28 on my system.
Author   isl-org
🌐
Travis CI Community
travis-ci.community › languages › node.js
Node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node) - Node.js - Travis CI Community
March 1, 2023 - Hi, When attempting any kind of nodejs build with Travis, I get the following errors: node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib/x86_64-linux-gnu/libc.so.6: vers…
🌐
Reddit
reddit.com › r/ubuntu › `glibc_2.27' not found error
r/Ubuntu on Reddit: `GLIBC_2.27' not found error
February 24, 2020 -

I want to install 4kvideodownloader application on my pc. I am using ubuntu 16.04 version.I can see the application symbol but it isn't opening. When i check that application it is showing to me `GLIBC_2.27' not found error:

/usr/lib/4kvideodownloader/4kvideodownloader-bin: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/lib/4kvideodownloader/libQt5WebEngineCore.so.5)/usr/lib/4kvideodownloader/4kvideodownloader-bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/lib/4kvideodownloader/libQt5WebEngineCore.so.5)......

Can anyone helps to me?

🌐
GitHub
github.com › directus › directus › issues › 6071
/lib64/libc.so.6: version 'GLIBC_2.25' not found · Issue #6071 · directus/directus
June 4, 2021 - Just updated from rc71 to rc73 When running npx directus bootstrap : /lib64/libc.so.6: version 'GLIBC_2.25' not found (required by [...] /node_modules/argon2/lib/binding/napi-v3/argon2.node) Centos 7.9 New requirement with new version of...
Author   directus
🌐
Docker Community
forums.docker.com › docker engine › compose
/lib64/libc.so.6: version `GLIBC_2.32' not found - Compose - Docker Community Forums
August 8, 2023 - I have a Quarkus application that is used to build a native-micro container image. The image is built in a GitHub Action. However, when I run it on my Windows laptop using docker-compose I receive the following error. ./application: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./application) ./application: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./application) It seems the reason is the difference in build and run environments w.r.t. glibc as described at...
Top answer
1 of 4
22

I recently ran into this issue.

Build your project with CGO_ENABLED=0 may be enough to fix your issue:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go

If you are using sam, there is a --use-container flag, however this may not work for golang projects

To make sam build use a custom build command, i.e. run the go build command above, you can set the BuildMethod to makefile and create a Makefile with a target with the name build-<YourFunctionName>.

CopyHealthCheckFunction:
    Type: AWS::Serverless::Function
    Metadata:
      BuildMethod: makefile
    Properties:
      CodeUri: .
      Handler: healthcheck
      FunctionName: !Sub "healthcheck_${Env}"
      Runtime: go1.x
      Architectures:
        - x86_64
      Events:
        ...

Then the Makefile would have:

build-HealthCheckFunction:
  GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o healthcheck lambda/healthcheck/healthcheck.go
  mv healthcheck $(ARTIFACTS_DIR)

More details here on what I had to do to get this fixed in my project: https://www.gaunt.dev/blog/2022/glibc-error-with-aws-sam-and-go/

2 of 4
12

It probably means that the glibc version used to build the executable is different than the docker environment is using.

So, check the build environment ldd --version will reveal the glibc version.

Now, in your docker container (docker run -ti --entrypoint=/bin/bash dockerimage:tag) type the same ldd command. You'll probably see that the versions are different. So, update either the build environment to use the same version as the docker environment or vice-versa.

The best way to avoid this is to use the runtime environment to build your native executable: this way the glibc version will always match.