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