GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
自己在centos上想升级glib,下载源码make install之后,不能用,又yum install gettext
,之后系统大部分命令都不能执行了,全部报这个错误:
lib64/libpthread.so.0: symbol __libc_dl_error_tsd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
比如grep:
grep: relocation error: /lib64/libpthread.so.0: symbol __libc_dl_error_tsd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
mkdir: relocation error: /lib64/libpthread.so.0: symbol __libc_dl_error_tsd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
/usr/bin/python3: relocation error: /lib64/libpthread.so.0: symbol __libc_dl_error_tsd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
ls,ps,grep这些基本命令都不能用了
貌似只有内核自带的命令能用,看起来是系统坏了
此时千万不要断开ssh连接(断开就连不上了,需要接触到服务器,才能进行后续补救的措施)
更不要重启,重启就开不开机了
先用head查看lib64里面现有版本有哪些:
head /usr/lib64/ld*.so
head /usr/lib64/libc-*
返回
==> /usr/lib64/ld-2.17.so <==
ELF >