How to install libpcap library into ubuntu12.04

Steps for installing libpcap library

Step1: Download libpcap.tar.gz from www.tcpdump.org and decompress it by using tar -xzvf
Step2: Download the latest version of flex.tar.gz from http://flex.sourceforge.net/ and decompress it by using the same command
Step3: Download the latest version of bison.tar.gz from ftp://ftp.gnu.org/gnu/bison/ and decompress it

Step4: Download the lateest version of m4.gz  from ftp://ftp.gnu.org/gnu/m4/ and decompress it

Step5 : Go inside each directory and run the following commands
             sudo ./configure
            sudo make
            sudo make install

Step6:  Follow the order in this
m4->flex->bison->libpcap

Your libpcap libraries will be installed in the /usr/local/lib folder
you can check it with by typing ls-l /usr/local/lib | grep "libpcap"

copy all into the /usr/lib/pcap

and now you can start programming ...

Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto