Linux中关于glibc包编译升级导致服务器命令无法使用

服务器上编译glibc2.30版本导致命令不能用
Inconsistency detected by ld.so: dl-call-libc-early-init.c: 37: _dl_call_libc_early_init: Assertion `sym != NULL' failed!
下面是造成不可用的原因
tar -zxvf glibc-2.29.tar.gz
cd glibc-2.29
mkdir build_dir
cd build_dir
sudo ../configure --prefix=/usr/local/glibc-2.30

make && make install 


`更改环境变量`
[root@localhost ld.so.conf.d]# export LD_LIBRARY_PATH=/usr/local/glibc-2.30/lib:$LD_LIBRARY_PATH


`刷新`
[root@localhost ld.so.conf.d]# ldconfig

`刷新后便不能使用正常的命令了`
[root@localhost app]# ls
Inconsistency detected by ld.so: dl-call-libc-early-init.c: 37: _dl_call_libc_early_init: Assertion `sym != NULL' failed!
恢复可用的方式
[root@localhost ld.so.conf.d]# export LD_LIBRARY_PATH=""


`刷新`
[root@localhost ld.so.conf.d]# ldconfig

至此: 服务器又可用了

 

阅读剩余
THE END
诺言博客