如何在 Ubuntu 12.04 上安装 libpcap 头文件?
当我使用时,apt-get install libpcap我收到以下消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpcap
Run Code Online (Sandbox Code Playgroud) 我想安装 reaver 并且我得到的错误是:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... no
error: pcap library not found!
Run Code Online (Sandbox Code Playgroud)
我已经尝试过以下命令: …
我安装了jnetpcap,但显示libpcap.so未找到错误,所以我使用
sudo apt-get install libpcap-dev
Run Code Online (Sandbox Code Playgroud)
但当我grep libpcap进去/lib时/usr/lib它不在那里,我是否错过了什么?