错误提示:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such fil
来源:互联网 发布:2015美工电脑配置 编辑:程序博客网 时间:2024/06/01 10:25
error while loading shared libraries: libpcap.so.1 解决方案
错误提示:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory
环境:Ubuntu10.10 libpcap-1.2.0rc1
操作:代码由C编写,gcc编译通过,以管理员权限运行,出错
在网上搜罗了下,成功解决问题。
解决方案:
1. 执行 locate libpcap.so.1 , 查看libpcap.so.1在系统中的路径 , 显示为 : /usr/lib/libpcap.so.1.1.1
2. 执行:sudo vi /etc/ld.so.conf以管理员权限打开编辑 /etc/ld.so.conf 文件, 末尾新一行追加 /usr/lib(千万别加file://) , /usr/lib 为 libpcap.so.1.1.1 所在目录, 保存退出
3. 以管理员权限执行 ldconfig 命令,
4. 成功
阅读全文
0 0
- 错误提示:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such fil
- 错误解决 error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such fil
- Linux运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fil
- 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 : countlib.so : cannnot open shared object file : No such fil
- error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such fil
- error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such fil
- error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such fil
- error while loading shared libraries: libpcap.so.2: cannot open shared object file: No such file or
- ./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
- mecab: error while loading shared libraries: libmecab.so.1: cannot open shared object file: No such
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file
- error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file.....
- error while loading shared libraries: libiw.so.29: cannot open shared object file: No such file
- android shape设置渐变、圆角、边框线
- OTA编译失败两种情况的解决办法
- 短文本Python库TextGrocery
- 播放器解码硬解跟软解有什么区别
- js数组删除指定元素
- 错误提示:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such fil
- sublime text3插件总结
- 数组与字符串长度sizeof()、strlen()、string的length()和size()
- 仿微信,自定义聊天对话框图片控件
- 【LeetCode】53. Maximum Subarray
- SDL移植到ARM-linux下
- 解密回声消除技术之一(理论篇)
- springmvc搭建框架时无法加载js或者css等文件
- OFBIZ FTL模板 中文乱码问题