visual-studio-code - centos 升级glibc疑问?
PHPz
PHPz 2017-04-25 09:04:20
0
2
972

我现在安装vscode提示缺少

./Code: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/VSCode-linux-x64/libgcrypt.so.11)
./Code: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /usr/local/VSCode-linux-x64/libgcrypt.so.11)

然后我下载glibc-2.15.tar.gz、glibc-ports-2.15.tar.gz分别解压安装。
mkdir glibcbuild
cd glibcbuild
../glibc-2.15/configure
make -j4
make install -j4 这里报错,说找不到ld.so.conf,然后我就touch了一个ld.so.conf文件
make install -j4
安装完成,然后我
strings /lib64/libc.so.6 |grep GLIBC_
发现还是没有GLIBC_2.14和GLIBC_2.15 请问怎么破? 我的系统是centos 6.5

PHPz
PHPz

学习是最好的投资!

reply all(2)
给我你的怀抱

After you compile, the so you compiled is in the lib in the folder where you compiled, and the system so has not been replaced. In fact, /lib64/libc.so.6 has not changed at all, so you The new glibc cannot be found.
The correct approach
You can link libc.so.6 to the libc-2.15.so file you compiled, or you can solve it through a temporary external link library
For example
export LD_LIBRARY_PATH=/opt /glibc-2.15/lib:$LD_LIBRARY_PATH

给我你的怀抱

ld.so.conf file is missing:

cp -r /etc/ld.so.c* /opt/glibc-2.14/etc/
ln -sf /opt/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template