Solutions to Common Errors in linux

Source: Internet
Author: User
Solution to a common type of errors in linux-general Linux technology-Linux programming and kernel information. For details, refer to the following section. When compiling the source code, the following errors often occur:
/Usr/bin/ld: cannot find-libutempter
What is more common is
/Usr/bin/ld: cannot find-l ***
The stars below indicate a type of incorrect name. The cause of this error is very simple, that is, Link error. The simple method is to manually set the link once and take
/Usr/bin/ld: cannot find-libutempter
For example:
Now let's take a look at the format of the class library file under the lib Folder:
Cd/usr/lib
Ls-la | grep iutempter
The result is as follows:
Lrwxrwxrwx 1 root 20 09-10 :26 libutempter. so.0-> libutempter. so.1.1.4
-Rwxr-xr-x 1 root 6216 libutempter. so.1.1.4
Obviously, there is no. so file. We can link a. so file again.
Ln-s libutempter. so.0 libutempter. so
Can I compile it again?

And, for example
/Usr/bin/ld: cannot find-lelf
It is also a type. Execute a link in the lib Folder:
Ln-s/usr/lib/libelf. so.1/usr/lib/libelf. so
Assume that the. so.1 library file exists.

Also:
/Usr/bin/ld: cannot find-lc
This is because libc. so does not exist.
Also, a link to libc. so is provided.

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.