|
Post by ZF on Feb 23, 2013 9:06:54 GMT -5
I haven't used libpcap since I posted this blog last time (2011). But many people may not get it work following the old steps below. Therefore, I tried to install libpcap myself on the latest Ubuntu 12.10. Here are the steps: Download libpcap-1.3.0.tar.gz from www.tcpdump.org/ and decompress it; Download flex-2.5.37.tar.gz from flex.sourceforge.net/ and decompress it; Download bison-2.7.tar.gz from ftp.gnu.org/gnu/bison/ and decompress it; Download m4-1.4.16.tar.gz from ftp.gnu.org/gnu/m4/ and decompress it; Then, enter into directories m4-1.4.16, bison-2.7, flex-2.5.37 and libpcap-1.3.0 in order, and execute the following commands: $ sudo ./configure $ sudo make $ sudo make install ** Basically, just find the latest version from these websites to download. Open /etc/ld.so.conf as root, and add the following two lines to it: /usr/local/lib /usr/lib Then execute command: $ sudo ldconfig SOURCE:http://xgjonathan.blogspot.sg/2011/04/how-to-install-libpcap-on-ubuntu.html
|
|