How to install libpcap for Linux?

来源:互联网 发布:阿里云开网站 编辑:程序博客网 时间:2024/06/18 05:59

How to install libpcap for Linux?

For example. I work under Ubuntu.
1.Download the latest release version of libpcap from http://www.tcpdump.org/#latest-release
2.Decompress libpcap-1.6.1.tar.gz —- tar -zxvf libpcap-1.8.1.tar.gz
3.Ensure that you have installed flex —- sudo apt-get install flex
4.Ensure that you have installed yacc —- sudo apt-get install -y byacc
5.cd libpcap-1.8.1
6.sudo make && make install
7.done

原创粉丝点击