【TCP/IP】ubuntu14.04.4安装libpcap 1.6.2

1.libpcap下载地址:

http://www.tcpdump.org/release/libpcap-1.6.2.tar.gz 

2.编译内核时,需要选中packet socket(CONFIG_PACKET)。 

3.安装依赖libpcap-dev,flex,bison或者yacc。 

# apt-get install libpcap-dev

# apt-get install flex

# apt-get install bison
update-alternatives:使用/usr/bin/bison.yacc来提供/usr/bin/yacc(yacc) # apt
-get install yacc

4.编译下载好的libpcap

# pwd
/home/test/work
# tar xvf libpcap-1.6.2.tar.gz -C /home/test/work/

# cd libpcap
# ./configure
# make
# make install

5.使用root权限运行ldconfig

# ldconfig

 

6.本文网址[tom-and-jerry发布于2014-09-27 20:54]

http://www.cnblogs.com/tom-and-jerry/p/3997200.html

 

【完结】

posted @ 2014-09-27 20:54  jerry_0824  阅读(1196)  评论(0编辑  收藏  举报
levels of contents