Upgrade GLIBC, causing library file errors

Source: Internet
Author: User
Upgrading GLIBC causes a library file error-Linux Enterprise Application-Linux server application information. The following is a detailed description. Last week, winrar was installed in debian and glibc was upgraded to 2.4, while glibc of deiban4.0 was 2.3.6 (but/lib/libc. so.6 view the version ). use apt-get to install glibc as prompted. If glibc is not installed successfully, the system cannot be accessed. When loading half the data at startup, the system prompts that the/lib/tls/i686/cmov/libc. so.6 shared link files cannot be loaded. This may be the cause of the previous failure to update the library file. Later, I used the ubuntu CD to enter the system and mounted the root directory of debian. View libc under/lib/tls/i686/cmov. so.6, it is linked to a libc-2.3.6 under a file, the link is not out ,. I deleted the file and made a soft link again.

Rm-rf libc. so.6
Rm-rf libpthread. so.0
Ln-sf libc-2.3.6.so libc. so.6
Ln-sf libpthread-2.3.6.so libpthread. so.0

(Because the two files are incorrect at startup, only the software links are made for the two files)

After the restart, you still cannot enter the graphics system, but you can enter the basic system. Some basic commands are still incorrect. For example, when you use the ls command, the system prompts "ls: relocation error:/lib/tls/i686/cmov/libpthread. so. o: symbol errno, version GLIBC_PRIVATE not defined in file libc. so.6 with link time reference ". It seems that the problem of library files is still not solved. The upgrade to glibc mainly involves modifying the four files libc. so.6, libm. so.6, libpthread. so.0, and librt. so.1 in the/lib Library (refer to the article ). So the problem should be on the four files. Use the ubuntu CD to enter the system, mount the four files under/lib to/lib/tls/i686/cmov, and start again.

# Cp-a/lib/tls/i686/cmov/homa/lanazou (back up)
# Cd/lib/tls/i686/cmov
# Rm-rf libc. so.6 libm. so.6 libpthread. so.0 librt. so.1
# Rm-rf libc-2.3.6.so libm-2.3.6.so libpthread-2.3.6.so librt-2.3.6.so
# Ln-sf libc-2.3.6.so libc. so.6
# Ln-sf libm-2.3.6.so libm. so.6
# Ln-sf libpthread-2.3.6.so libpthread. so.0
# Ln-sf librt-2.3.6.so (librt. so.1)

Glibc library is the core shared library and tool in the system, so it is best not to overwrite the system's default. If it is blindly overwritten, it is likely to paralyze the entire system, because when the glibc library is updated, all other shared libraries dependent on the libc library must be re-compiled. so we have to back up the data. prevents system crashes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.