- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试让 libcap 在我的机器上运行(运行 Ubuntu 12.04),但我目前无法完成此操作:
这一切是这样开始的:
pcap.h
。它说Unresolved inclusion <pcap.h>
sudo apt-get install libcap-dev
现在我仍然收到无法解析的警告 pcap.h
.
我做错了什么?有什么想法吗?
最佳答案
尝试安装 linux-headers,但您需要知道您的内核版本:
例如:
tiago@dell:~$ sudo uname -a
Linux dell 3.11.0-20-generic #35~precise1-Ubuntu SMP Fri May 2 21:32:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
tiago@dell:~$ sudo apt-get install linux-headers-3.11.0-20
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.11.0-20 is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
关于c - 如何在 Ubuntu 12.04 上安装 libcap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23805445/
我编写了一个 c-lang 程序来读取 .pcap 文件。令我困惑的是,我读取的数据与 WireShark 具有不同的字节序。 我正在研究 X86 ach,正如我所见,它是 LittleEndian。
我无法安装 libcap 包以在 Raspberry Pi 3 上使用 CAP_SYS_ADMIN。 如何安装?我无法理解某些网站中的安装步骤。 这是libcab的版本页面 https://www.k
背景:我正在自学数据包嗅探。我在一个 shell 中运行一个非常简单的服务器,从另一个 telnet 到它,然后尝试不同的方法来嗅探流量。当我使用原始套接字 (IPPROTO_TCP) 时,我会捕获我
我有一个带有 openwrt 的 tl-3020 路由器。我在 ram 中安装了 tcpdump(空间不足),但由于标题中提到的错误而无法运行它。 我尝试重新安装 tcpdump 和 libcap 安
为什么cap_t定义为_cap_struct *?当正常的 libc 使用表明它们将采用/返回显式指针类型时,混淆指针类型并让 libcap 函数采用/返回 cap_t 的原因是什么? 最佳答案 混淆
我正在尝试在 ubuntu 10.10 上编译以下最小 C 代码: #include void main(void) { cap_t cap; cap = cap_g
我在执行 exe 时遇到了 GLIBC 版本问题在 c 中编译的文件. /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29' not found
我正在尝试让 libcap 在我的机器上运行(运行 Ubuntu 12.04),但我目前无法完成此操作: 这一切是这样开始的: 在 Eclipse 中,我收到无法解析的警告 pcap.h 。它说Unr
Linux 功能 (libcap.so) 库是否可用于 Android?如果没有,我该如何编译它? 我想使用 sys/capabilities.h 中与功能相关的 API,该 API 包含在 NDK
我是一名优秀的程序员,十分优秀!