Centos 6.8 encountered `GLIBC_2.14' not found when installing nvim

Centos 6.8 encountered an error during the installation of nvim.

The error is as follows:
nvim : /lib64/libc.so.6: version `GLIBC_2.14' not found (required by nvim)

Analysis of the cause of the error:
GLIBC version is lower than 2.14.

# ldd --version
ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
由 Roland McGrath 和 Ulrich Drepper 编写。

If you cannot install a version higher than 2.12 using yum sudo yum update glibc, you can only install it manually.

Solution

mkdir ~/glibc_install
cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH="/opt/glibc-2.14/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"

The third step is slow to download. If it is slow, it is recommended to upload to the server after downloading from Thunder. Thunder downloads quickly.

Now nvim is running normally, as follows:
Insert picture description here

reference

https://unix.stackexchange.com/questions/176489/how-to-update-glibc-to-2-14-in-centos-6-5

Guess you like

Origin blog.csdn.net/lxyoucan/article/details/115054181