GLIBC Problem & Solution

Some nodes binary requires GLIBC 2.38+, but Ubuntu 22.04 only has GLIBC 2.35. You don't need to reinstall your machine for running the binary, you can patch it and make it running with newer GLIBC version.

The error found will like:

binaryd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found

We will use patchelf to make the binary use a separate GLIBC 2.39 library without touching the system GLIBC. This keeps your system and other applications completely safe.


Install Dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git jq patchelf

Install GLIBC 2.39

# Download pre-built GLIBC 2.39
cd $HOME
wget -O glibc-2.39-ubuntu24.tar.gz https://github.com/pramonoutomo/GLIBC/raw/refs/heads/main/glibc-2.39-ubuntu24.tar.gz

# Extract
tar -xzvf glibc-2.39-ubuntu24.tar.gz

# Move to /opt (isolated location)
sudo mkdir -p /opt/glibc-2.39/lib
sudo mv glibc-transfer/* /opt/glibc-2.39/lib/

# Verify
/opt/glibc-2.39/lib/ld-linux-x86-64.so.2 --version

# Cleanup
rm -rf glibc-transfer glibc-2.39-ubuntu24.tar.gz

You should see: ld.so (Ubuntu GLIBC 2.39...) stable release version 2.39

Patch The Binary

GLIBC Error Still Appears?

Reference: Coinsspor Githubarrow-up-right

Last updated