动态 版块 发帖 消息 我的
小绿叶技术博客
小绿叶技术博客
小绿叶技术Lv154   
linux ubuntu 安装 libpcap 网络抓包库     



#!/bin/bash

rundir=/datadisk/eisc/server/lib/libpcap/libpcap1104


sudo apt install -y gcc flex byacc make cmake
wget https://www.tcpdump.org/release/libpcap-1.10.4.tar.gz
tar -xzvf libpcap-1.10.4.tar.gz
cd libpcap-1.10.4

sudo mkdir -p $rundir
sudo chmod 777 $rundir
./configure --prefix=$rundir

make ; make install


# /datadisk/eisc/server/lib/libpcap/libpcap1104/lib/libpcap.so
# /datadisk/eisc/server/lib/libpcap/libpcap1104/include
echo "库文件路径: $rundir/lib/libpcap.so"





 2  已被阅读了308次  楼主 2024-05-23 16:23:08
回复列表

回复:linux ubuntu 安装 libpcap 网络抓包库

guest
登录之后更精彩~
Powered by HadSky 7.12.10
© 2015-2024 PuYueTian
您的IP:44.221.66.130,2024-06-20 13:27:58,Processed in 0.02093 second(s).
Powered by HadSky
小绿叶技术博客