Error while loading shared libraries: Libpcap. so.1 Solution

Source: Internet
Author: User

Reposted many things

Source: http://www.cnblogs.com/acmy/archive/2011/10/12/2208392.html

---------------------------------------- The following content is reprinted -----------------------------------------------

Error message: Error while loading shared libraries: Libpcap. so.1: cannot open shared object file: no such file or directory

Environment: ubuntu10.10 libpcap-1.2.0rc1

Operation:CodeCompiled by C and compiled by GCC, run as administrator, error

I searched the internet and solved the problem successfully.

Solution:

1. Execute locate Libpcap. so.1 to view the path of Libpcap. so.1 in the system, which is/usr/lib/Libpcap. so.1.1.1.

2. Open and edit the/etc/lD. So. conf file as an administrator, append/usr/lib to the end of a new line, and save and exit the file as the directory of Libpcap. so.1.1.1.

3. Run the ldconfig command as an administrator,

4. Successful

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.