GLIBC安装问题

0

升级GLIBC容易导致系统崩溃,所以建议多开几个SSH窗口,同时建议一个版本一个版本升级,版本跨度不要太大。

2.17 -> 2.28 可以
2.17 -> 2.3x 不行
无法识别的选项 "--gdwarf-4"

这个是as版本太低导致的,连接一个新的即可。

ls: 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

升级glibc可能会导致系统崩溃,使用下面命令还原:

sln /usr/lib64/ld-2.17.so   /usr/lib64/ld-linux-x86-64.so.2
sln /usr/lib64/libc-2.17.so /usr/lib64/libc.so.6
sln /usr/lib64/libm-2.17.so /usr/lib64/libm.so.6

下面问题可以忽略:

Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
  libm.so should point to the newly installed glibc file - and there should be
  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [Makefile:111: install] Error 1
make[1]: Leaving directory '/data/dev/glibc-2.28'
make: *** [Makefile:12: install] Error 2