Library function dependency problems

Source: Internet
Author: User
Library function dependency-general Linux technology-Linux programming and kernel information. For more information, see the following. An error is reported during installation, indicating that a library function is missing. Common formats:/home/albert/software/bag_words_demo/common/xcv_segment: error while loading shared libraries: libtiff. so.3: cannot open shared object file: No such file or directory

In Ubuntu, this is not a problem. No, so use apt-get-f install filename.

You can easily repair the missing library files. At this time, apt will automatically download the dependent library file (not very sure ).

General Solution:
Linux database operations can be completed using commands. Currently, ldd and ldconfig are commonly used.

1. ldd
Ldd is short for Library Dependency Display. It is used to Display a shared Library that can be used by an executable program. Find the missing library functions, download and add them. Note that the library functions used by the ubuntu root account are limited to/lib and/usr/lib.

2. Refresh the database function cache and use the sudo ldconfig command;

Run the command repeatedly until no error is reported!

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.