We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,449 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Problem in installing libpcap on ubuntu

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.

6
Contributors
5
Replies
3 Years
Discussion Span
5 Months Ago
Last Updated
7
Views
arunmagar
Junior Poster in Training
51 posts since Oct 2008
Reputation Points: 10
Solved Threads: 8
Skill Endorsements: 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
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
Skill Endorsements: 21

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.

arunmagar
Junior Poster in Training
51 posts since Oct 2008
Reputation Points: 10
Solved Threads: 8
Skill Endorsements: 0

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

sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
Skill Endorsements: 21

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.

sandeep.xlent
Newbie Poster
1 post since Jun 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

JustinXu
Newbie Poster
1 post since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0665 seconds using 2.66MB