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.
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