Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install GLIBC 2.29 or higher in Ubuntu 18.04

So I am trying to install truDesk on my local system. I am getting this error while running the command npm install -g yarn:

node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

My Ubuntu version is Ubuntu 18.04.6 LTS and when I am checking for the latest version, it's showing that the software is up to date. As I go through the glibcc error, it requires an Ubuntu version greater than 18. How can I update the version?

This is the application I am trying to download.


2 Answers

You can try to download glibc from the official source and install it:

wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
tar -zxvf glibc-2.29.tar.gz
mkdir glibc-2.29/build
cd glibc-2.29/build
../configure --prefix=/opt/glibc
make 
make install

Pay attention to avoid breaking your OS environment: you need to specify the prefix and configure the separate path when you are using it.


See this answer on how to use the alternate GLIBC.

like image 113
Dolphin Avatar answered Sep 02 '25 07:09

Dolphin


Answer from @Dolphin isn't complete as it produces error from make: Makeconfig:42: *** missing separator. Stop.

In my case, to I had to do following:

# Check GLIBC_2.29
ldd --version | head -n1

# Build GLIBC_2.29 from sources
sudo apt-get install gawk bison -y
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.gz
tar -zxvf glibc-2.34.tar.gz && cd glibc-2.34
mkdir glibc-build && cd glibc-build
../configure --prefix=/opt/glibc-2.34
make 
sudo make install

P.S. If you are trying to run ord just try building from sources, it's much simpler than upgrading ubuntu or recompiling GLIBC

like image 36
Alex Kosh Avatar answered Sep 02 '25 06:09

Alex Kosh