Centos 6.8在安装nvim中遇到个错。
错误如下: nvim: /lib64/libc.so.6: version `GLIBC_2.14’ not found (required by nvim)
错误原因分析: GLIBC 版本低于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 编写。
使用yum无法安装高于2.12的版本的sudo yum update glibc
,那就只能手动安装了。
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}"
第三步下载比较慢,如果比较慢的话,建议使用迅雷下载后上传服务器。迅雷下载很快。
这下nvim正常运行啦,如下:
https://unix.stackexchange.com/questions/176489/how-to-update-glibc-to-2-14-in-centos-6-5