Libc. so.6 loading error

Source: Internet
Author: User

Sometimes we accidentally mistakenly operate the libc. so.6 file during some operations, resulting in some simple commands being unusable. For example, if I change the file name:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/41/24/wKiom1PRIX6S2gQiAACop_lvlCk194.jpg "style =" float: none; "Title =" error.png "alt =" wkiom1prix6s2gqiaacop_lvlck194.jpg "/>

Or sometimes the system prompts "/lib // libc. so.6 error, file is too short"; these are all caused by damage to the file;

Libc. so.6 is a dynamic link library for almost all Linux commands. It has various functions of Standard C and cannot be moved easily.

In fact, it is easy to ignore that libc. so.6 this file is only a link to the libc-2.12.so (different versions of this file name may be different:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/24/wKiom1PRIX6gvmaeAABPBNMV5pA110.jpg "style =" float: none; "Title =" chain. PNG "alt =" wkiom1prix6gvmaeaabpbnmv5pa110.jpg "/>

In Linux, the shared link library is mainly placed in the/lib directory, with lib *. So. * as a typical file name. The shared link library in Linux is very important for Linux. Almost all programs need to call the shared link library, similar to the *. dll file in windows.

The easiest solution here is a command: # ldconfig. If you have libc. so.6 with the same name, you can delete it and then execute this command, otherwise it will not take effect. If this is not the case, go to the rescue mode and copy the libc. so.6 file in the CD to/lib/(or/lib64) of the system:

For example, in Shell in rescue mode

# Cp lib/libc. so.6 MNT/sysimage/lib/libc. so.6

If you want to enter the single-user mode, it is futile. The result also shows that the libc. so.6 file cannot be found! This is because Linux calls the shared link library before reading the/etc/inittab file. To start Linux, you must first boot the kernel, then perform device detection, and then call a process called init. The process follows certain rules, read the content of the/etc/inittab file and execute related processes in the file to guide the system into a specific running rule process, which is known as the six modes. The INIT process first calls the shared link library. Because an error occurs in the shared link library, the single-user mode cannot be entered. Only the boot disk and Repair Disk can be used to enter the first-aid mode of Linux.


This article from the "JX _ trench Linux" blog, please be sure to keep this http://xujunxian.blog.51cto.com/8614409/1529900

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.