I've got this error with buildroot-2022.11 when executing make.

Ubuntu 20.04 - added this repo as described in the link

sudo apt update
sudo apt install libc6

It automatically installed 2.35 for me.

Answer from mister_kanister on Stack Overflow
🌐
Stack Overflow
stackoverflow.com › questions › 75293654 › how-to-use-glibc2-34-on-centos7-6
linux - How to use glibc2.34 on centos7.6? - Stack Overflow
I'm a linux noob, so please do let me know if I've said or done anything wrong. ... Set LD_LIBRARY_PATH to the directory containing the alternate versions of libraries when you run your program. Don't touch the system-installed versions.
🌐
GitHub
github.com › google › closure-compiler-npm › issues › 280
`GLIBC_2.32' and `GLIBC_2.34' not found error in AlmaLinux OS 8 and CentOS Stream 8. · Issue #280 · google/closure-compiler-npm
January 16, 2023 - From 20230103.0.0 google-closure-compiler-linux fails with the following error on AlmaLInux OS 8 as well as CentOS Stream 8 (aka RHEL8 platforms). /root/node_modules/google-closure-compiler-linux/compiler: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /root/node_modules/google-closure-compiler-linux/compiler) /root/node_modules/google-closure-compiler-linux/compiler: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /root/node_modules/google-closure-compiler-linux/compiler)
Author   google
🌐
Reddit
reddit.com › r/linux4noobs › version `glibc_2.34' not found when using the command code
r/linux4noobs on Reddit: version `GLIBC_2.34' not found when using the command code
August 11, 2023 -

Hi, I have recently dualbooted my laptop so im still very much a linux noob and I installed VSCode with the ubuntu software app. When I try to open VSCode nothing happens, and if I use the code command I get the following error:

ERROR: ld.so: object '/usr/local/lib/x86_64-linux-gnu/libinput-config.so' from /etc/ld.so.preload cannot be preloaded (failed to map segment from shared object): ignored.

/snap/code/136/usr/share/code/bin/../code: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/lib/x86_64-linux-gnu/libinput-config.so)

Can someone please help me? I googled it but I can't find a solution. Thanks in advance

Edit:

Fixed it by using sudo vim on the /etc/ld.so.preload file and deleting the line /usr/local/lib/x86_64-linux-gnu/libinput-config.so.

🌐
Salow Studios
salowstudios.com › home › how to fix the error “glibc_2.34 not found” in linux
How to Fix the Error "GLIBC_2.34 Not Found" in Linux - Salow Studios
February 22, 2024 - Install Newer GLIBC Version: Once the PPA is added and updated, you can install a newer version of GLIBC. Replace X.YY with the desired version number (e.g., 2.34):
🌐
GitHub
github.com › cli › cli › issues › 6459
Unable to run gh because it cannot find glibc version · Issue #6459 · cli/cli
October 18, 2022 - On CentOS 7, with gh installed using brew. gh is unable to run because it cannot find the required glibc version. gh --version gh: /usr/lib64/libc.so.6: version `GLIBC_2.32' not found (required by gh) gh: /usr/lib64/libc.so.6: version `GLIBC_2.34' not found (required by gh)
Author   cli
🌐
Red Hat
access.redhat.com › solutions › 7077895
oc command fails due to missing glibc library - Red Hat Customer Portal
March 9, 2026 - oc commands fail with the following error: $ oc version oc: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by oc) oc: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by oc) oc: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by oc)
Find elsewhere
🌐
FEBio Forum
forums.febio.org › home › febio studio forum › users forum › glibc_2.34 not found
GLIBC_2.34 not found - FEBio Forum
As I said in my previous response, I cannot simply distribute GLIBC with FEBio. The installer works just fine, as do the binaries that it installs. The problem is that your system is using an older version of GLIBC than the system that we are currently building FEBio on, and so it won't run ...
Top answer
1 of 3
23

Check it is actually needed

Firstly check the python application as it could be out of date and is probably misreading the glibc version. CentOS shows the base version as installed and is patched to keep up with changes and it could just be a case of fixing the version that is being looked for in the code as a quick fix, but if the application is being actively developed you need to let the developers know or fork it for yourself if you can.

An up to date glibc on CentOS 7 should be 2.17-196.el7_4.2

If it is needed, Containerise

If it's absolutely necessary to run this application, the official RHEL approach would be to containerize, but you would still need to provide a working glibc, which wouldn't be possible with stock CentOS 7.

As a last resort, install glibc in a nonstandard location

If this isn't viable, and as an absolute last resort, it is possible to install a newer version of glibc than 2.18 as that is 9 years old now and glibc has been updated for several vulnerabilities and I'm not sure off the top of my head if it will build with the version of make in CentOS 7, but any newer version should work as follows:

  • This can potentially affect the functionality of your computer so make sure you know what you are doing

You can build the version of glibc you require elsewhere on your server and add it to LD_LIBRARY_PATH for the application. Note this must only be done for the application only.

wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxvf glibc-2.18.tar.gz
cd glibc-2.18
mkdir build
cd build
../configure --prefix=/opt/glibc-2.18
make -j4
sudo make install

Then to run a binary you need to use patchelf to update its interpreter

patchelf --set-interpreter /opt/glibc-2.18/lib/ld-linux-x86-64.so.2 program_you_are_running

And you need to enable it to find the new glibc library, either by

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib

Or you can use patchelf to update the binary's rpath (you can combine this with the previous pathelf command)

patchelf --set-rpath /opt/glibc-2.18/lib:/usr/lib64 program_you_are_running

If you change LD_LIBRARY_PATH don't export it for the whole system because all the binaries unmodified by patchelf will segfault.

/opt is the standard place to install third-party applications and libraries but you can use any path away from the system paths.

2 of 3
4

In the end,I did not have to upgrade GLIBC. The gdc-client tool I downloaded through R seemed to be for Ubuntu and not CentOS, though I did it on CentOS 7. I then downloaded the gdc-client for CentOS and it worked fine.

🌐
Reddit
reddit.com › r/linuxquestions › version glibc not found and target not found?
r/linuxquestions on Reddit: Version GLIBC not found and target not found?
October 15, 2022 -

Hey, guys. I usually go with Ubuntu but right now I'm using an Arch VM (Cyberops Workstation) for a course I'm enrolled in. I'm having two separate issues. The first is that I'm trying to locate messsages and I get /usr/lib/libc.so.6: version \GLIBC_2.33' not found (required by locate). When I looked through that library, the file in question did not exist. I had already updated my entire system with -Syu, that changed nothing. I read sudo pacman -S libtool gcc gcc-libs would fix my problem and while now libc.so.6 exists, the same message pops up. What can I do?

I know I shouldn't partially update, but it's fine. I have exported an OVA of my system before tinkering with it and I can start over any time.

The second is that I'm also trying to install chkrootkit and I keep getting error: target not found: chkrootkit, even though as I've said I have already ran sudo pacman -Syu and so to my understanding any mirrors and repositories should have been updated. I figured I might need some kind of AUR helper, even though the guy in the Cisco instructional video is able to install it through pacman, but I keep having problems installing any of them.

🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found / Newbie Corner / Arch Linux Forums
March 7, 2022 - This is described in the wiki as well (steps 1-4 from "Pacman crashes during an upgrade": https://wiki.archlinux.org/title/Pacman … an_upgrade ) Edit: That uses --sysroot which is preferred when it works, but a missing glibc may force you to use --root instead.
🌐
GitHub
github.com › JabRef › jabref › issues › 10088
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found · Issue #10088 · JabRef/jabref
July 17, 2023 - :$ jabref /snap/jabref/2531/lib/runtime/bin/java: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/jabref/2531/lib/runtime/bin/java) /snap/jabref/2531/lib/runtime/bin/java: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/jabref/2531/lib/runtime/bin/../lib/libjli.so) /snap/jabref/2531/lib/runtime/bin/java: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/jabref/2531/lib/runtime/bin/../lib/libjli.so)
Author   JabRef
🌐
Stack Exchange
unix.stackexchange.com › questions › 732133 › glibc-2-34-not-found
glibc - `GLIBC_2.34' not found - Unix & Linux Stack Exchange
I am trying to run an up in my raspberry pi (4b with latest bullsey) which I have cross-compiled. The error am encountering is: “/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found” ...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › c/c++
how to resolve 'glibc_2.34 not found' - Raspberry Pi Forums
Sat Apr 27, 2024 12:45 pm to change a requested symbol from, say, malloc@GLIBC_2_34 to malloc@GLIBC_2_13. Don't do this. If you want to deploy your software on a system with glibc version 2.xy, you should compile it using a toolchain with version 2.xy or earlier.
🌐
GitHub
github.com › tauri-apps › tauri › issues › 1355
/usr/lib/libc.so.6: version `GLIBC_2.33' not found · Issue #1355 · tauri-apps/tauri
March 14, 2021 - Try to launch the appimage on another machine. (With another version of glibc.)
Author   tauri-apps
🌐
Red Hat
access.redhat.com › discussions › 3244811
Red Hat Customer Portal - Access to 24x7 support and knowledge
/bin/ksh: /lib64/libm.so.6: version `GLIBC_2.23' not found (required by /bin/ksh)
🌐
GitHub
github.com › ray-project › kuberay › issues › 2270
[Bug] Issue with glibc version GLIBC_2.34 and GLIBC_2.32 not found in earlier operator tags · Issue #2270 · ray-project/kuberay
July 26, 2024 - NAME="Amazon Linux" VERSION="2" ... HOME_URL="https://amazonlinux.com/" SUPPORT_END="2025-06-30" The issue seems to be related to the glibc version requirements of the /manager binary....
Author   ray-project