37

How can I install libpcap header files on Ubuntu 12.04?

When I use apt-get install libpcap I receive following message:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpcap
user.dz
  • 49,176
SuB
  • 4,419

3 Answers3

57

Use this:

sudo apt-get install libpcap-dev
oddone
  • 831
  • 1
  • 7
  • 8
7

to install libpcap. try these commands

cd /usr
mkdir nembuild
cd nembuild    
wget http://www.tcpdump.org/release/libpcap-1.5.3.tar.gz
tar -xf libpcap-1.5.3.tar.gz
cd libpcap-1.5.3
./configure
make && make install

Enjoy!!!

Jos
  • 30,529
  • 8
  • 89
  • 96
Abdul
  • 79
5

To install libpcap open a terminal by pressing Ctrl+Alt+Tand type:

sudo apt-get install libpcap0.8 libpcap0.8-dev libpcap-dev
M.Tarun
  • 5,121