LD:找不到 -lwiretap。为什么以及如何使其可用
ld: can not find -lwiretap. Why & how can I make it available
已经
在我的Linux盒子里安装了Wireshark,也可以创建makefile;但是当我尝试制作它时。它给出的错误如下-
$make
rm -f blib/arch/auto/Wtap/Wtap.so
cc -shared -O2 -g -L/usr/local/lib -fstack-protector Wtap.o -o blib/arch/auto/Wtap/Wtap.so
-L/usr/lib/wireshark -lwiretap
/usr/bin/ld: cannot open output file blib/arch/auto/Wtap/Wtap.so: Permission denied
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Wtap/Wtap.so] Error 1
此外,sudo 无法解决错误
$sudo make
chmod 644 Wtap.bs
rm -f blib/arch/auto/Wtap/Wtap.so
cc -shared -O2 -g -L/usr/local/lib -fstack-protector Wtap.o -o blib/arch/auto/Wtap/Wtap.so
-L/usr/lib/wireshark -lwiretap
/usr/bin/ld: cannot find -lwiretap
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Wtap/Wtap.so] Error 1
我在linuxbox中搜索以找到 libwiretap.so。它驻留在/usr/lib 中。任何人都可以指导我以解决此错误!谢谢
安装 wireshark-devel
.它包含窃听库的标头。
相关文章:
- 如何在 C 中正确使用 libiconv 使其不会报告"Arg list too long"?
- 在数字之间插入 + 或 - 符号以使其等于整数
- C++中的双边友语函数:如何使其编译?
- 使用模板参数重载C++方法:如何使其适用于模板的子类?
- 如何格式化我的文本文件以使其不会一遍又一遍地重复同一行?
- 如何改进我的代码,使其不会因超时而终止?(黑客排名挑战)
- 更改高度贴图,使其在 4x4 网格上显示 16 个 hieghtmap
- 提升库,使其成为C++标准
- 我写的 ASCII 到二进制转换器C++向后显示二进制,如何使其正确显示?
- 如何修复阵列以使其正确?
- 设置我的应用程序 API 感知并防止系统使其模糊和错误定位
- C++如何简化此模板以使其不专业?
- 在命名空间中声明变量,在 main 中定义它,使其对所有其他文件可见
- 为什么我必须将错误状态标志设置为 goodbit 才能使其工作
- 为什么移动对象不会使其为空?
- LD:找不到 -lwiretap。为什么以及如何使其可用
- 为什么在流中插入会使其宽度重置为 0
- 为什么OpenCV(@Banana Pi,Raspbian)中的全屏窗口分辨率会减慢相机镜头的速度并使其滞后
- 为什么VC++2013拒绝编译嵌套类型,当用作模板函数返回类型时,用using关键字使其可见
- 为什么我必须将地址强制转换为整数以使其可赋值?