/home/lfang/.config/nvim/lazy/mason/bin/clangd
/home/lfang/.confkzig/nvim/lazy/mason/bin/clangd: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /home/lfang/.config/nvim/lazy/mason/bin/clangd)
尴尬的是,这家公司实在拉跨,程序常年不更新,所以找不到 GLIBC_2.18 的版本号。
解决方案
升级 node
升级 glibc_2.18
1
2
3
4
5
6
7
8
9
10
11
12
exportGLIBC_VERSION=2.18
cd /tmp && wget --no-check-certificate http://mirrors.ustc.edu.cn/gnu/libc/glibc-${GLIBC_VERSION}.tar.gz &&\
tar -xvf glibc-${GLIBC_VERSION}.tar.gz &&\
cd glibc-${GLIBC_VERSION}&&\
mkdir build &&cd build &&\
../configure --prefix=/usr \
--disable-profile \
--enable-add-ons \
--with-headers=/usr/include \
--with-binutils=/usr/bin &&\
make && make install &&\
rm -rf /tmp/glibc*