1,105,177 Community Members

Problem in installing libpcap on ubuntu

Member Avatar
arunmagar
Junior Poster in Training
51 posts since Oct 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 8 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi,
I am working on project Signature Based IDS.
For that reason I need to install libpcap on my machine.
I have problem in installing.I have libpcap source directory.
as I give command
# ./configure
I found following error
configure: error: Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see
http://www.gnu.org/software/flex/flex.html .

please help in installing libpcap.Step by step.
Thanks in advance.

Member Avatar
sknake
Senior Poster
3,957 posts since Feb 2009
Reputation Points: 1,620 [?]
Q&As Helped to Solve: 747 [?]
Skill Endorsements: 25 [?]
Featured
 
0
 

Is there any reason you're trying to build it from source rather than installing it from the package repository?

sk:~# apt-cache search libpcap | grep ^libp
libpcap-dev - Development library for libpcap (transitional package)
libpcap-ruby1.8 - Ruby interface for the libpcap packet capture library
libpcap0.7 - System interface for user-level packet capture
libpcap0.7-dev - Development library and header files for libpcap 0.7
libpcap0.8 - System interface for user-level packet capture
libpcap0.8-dev - Development library and header files for libpcap 0.8
libpcap0.9 - Dummy package, can be safely removed
libpcap0 - System interface for user-level packet capture.
sk:~# apt-get install libpcap-dev

You could just install it with libaptituted unless you *want* to build it from source. You could also use aptitude to build from source:

apt-get --only-source build-dep libpcap-dev 
apt-get --only-source -b source libpcap-dev 
ls *.deb
dpkg -i libpcap*dev*deb
Member Avatar
arunmagar
Junior Poster in Training
51 posts since Oct 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 8 [?]
Skill Endorsements: 0 [?]
 
0
 

I don't have internet connection that is why I am installing from source instead of repository.As I get internet connection I will try as you said.
I think what ever you have given those are commands which I have to run.
I am new to linux.
Thank you sknake.

Member Avatar
sknake
Senior Poster
3,957 posts since Feb 2009
Reputation Points: 1,620 [?]
Q&As Helped to Solve: 747 [?]
Skill Endorsements: 25 [?]
Featured
 
0
 

You're welcome. Let me know if you have any problems in getting libpcap installed and we'll go from there

Member Avatar
sandeep.xlent
Newbie Poster
1 post since Jun 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

when i install libpcap these errors are cmng PLS HELP ME
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

Member Avatar
JustinXu
Newbie Poster
1 post since Dec 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

could you give me the configuration? i just configured the libpcap include, i can't do well.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: