如何在 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
答案1
用这个:
sudo apt-get install libpcap-dev
答案2
安装 libpcap。尝试这些命令
cd /usr
mkdir nembuild
cd nembuild
wget http://www.tcpdump.org/release/libpcap-1.5.3.tar.gz
tar -xf libpcap-1.5.3.tar.gz
cd libpcap-1.5.3
./configure
make && make install
享受!!!
答案3
要安装 libpcap ,请按 ++Ctrl打开终端并输入:AltT
sudo apt-get install libpcap0.8 libpcap0.8-dev libpcap-dev