error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or
来源:互联网 发布:雷阿伦得分数据 编辑:程序博客网 时间:2024/05/21 06:21
//-----------------------------------------------------------
//AUTHOR:lanyang123456
//DATE:2011-11-10
//-----------------------------------------------------------
Linux系统下,运行sniff程序需要libpcap库。
首先下载安装该库,下载地址: http://www.tcpdump.org/
点击DOWNLOADS
下载后
(1)解压
(2)进入解压后文件目录, ./configure
(3)make install
默认安装目录/usr/local/lib
编译sniff程序通过,运行sniff程序时,出现如下错误:
./sn: error while loadingshared libraries: libpcap.so.1: cannot open shared object file: No such file ordirectory
由于libpcap已经安装,所以是程序无法找到库所在的位置的原因。
解决办法:
将libpcap.so.1所在目录添加到文件/etc/ld.so.conf中,
打开ld.so.conf文件,然后添加一行/usr/local/lib:
includeld.so.conf.d/*.conf //原来的内容
/usr/local/lib
然后保存,再终端下执行 ldconfig。
再运行sniff程序,OK。
有时用tar解压文件.错误如下:
gzip: stdin: unexpectedend of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar:Error is not recoverable: exiting now
原因:
文件被破坏,重新下载。
原文:http://blog.csdn.net/lanyang123456/article/details/6956093
- error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or
- error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or
- error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or
- error while loading shared libraries: libpcap.so.2: cannot open shared object file: No such file or
- error while loading shared libraries: libmkl_rt.so: cannot open shared object file: No such file or
- error while loading shared libraries: ***.so: cannot open shared object file: No such file or direct
- 错误提示:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such fil
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- error while loading shared libraries: libvga.so.1: cannot open shared object file: No such file or
- error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- ./server: error while loading shared libraries: libzmq.so.1: cannot open shared object file: No such
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such
- untiy切换界面窗口代码
- 【Altium Designer/Protel】【精通在于细节】Altium Designer中对未布线的网络进行定位检查,漏线检查【原创】
- 【深入浅出IOS开发】彩票-去除图标的玻璃质感效果
- openstack的系统断电后重启出现虚拟机不能启动的情况
- UITableView的Cell复用的解决
- error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or
- Spring笔记(五): spring 整合jdbc、hibernate、jpa
- 生活里的插曲——致《奔跑吧,兄弟》
- 【深入浅出IOS开发】彩票-状态栏的设置
- 树链剖分(基于边权,点更新,区间更新)poj3237Tree
- draw 边框 xml
- 遇到一个gcc编译器版本导致的运行结果有差异的问题
- 漫步IOS--字典类(NSDictionary)
- 【转】WINCE6.0 远程工具,不能使用ActiveSync连接的问题