LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-25-2008, 02:52 AM   #1
nandonachi
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
unable to compile libpcap


i downloaded a tarball for libpcap on compiling it i found an error saying the "lex was not sufficient" and told me to download flex and bison

on installing flex and bison and running libpcap, i found an error again,

"bison: subsidiary program `/usr/local/bin/m4' failed (exit status 1)
make: *** [grammar.c] Error 1
"

(i had previously installed m4)

pls help

i have ubuntu 8.10.
 
Old 12-25-2008, 04:04 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
So that would be Ubuntu 8.10 in /usr/bin/ and
/usr/lib/, and then something else in /usr/local/

If you are just practicing compiling it's OK, but
I'd suggest removing the /usr/local/ stuff after
you have seen it installing, and use 'synaptic'
or 'apt-get install <package>' to get some of the
28000 Ubuntu packages.

Then you will have a chance to build a few things
not available from the package manager.

The basic developing packages installs with :
'apt-get install build-essential' , and libpcap :
'apt-get install libpcap0.8-dev'
Also have a look at the "Search" function in Synaptic
to get the actual Ubuntu package name.

'm4' : use the Ubuntu package instead of building
it yourself. The same for flex and bison.

Good luck.
....
EDIT : 'apt-get install ...' must be
'sudo apt-get install ....' in Ubuntu.
....

Last edited by knudfl; 12-25-2008 at 07:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to compile C++ code kirtimaan_bkn Programming 8 07-01-2006 06:40 AM
Unable to compile SVGALib 1.4.3 showcasefloyd Linux - Software 5 10-23-2004 07:47 AM
Libpcap Compile / Configure: ANSI Ioctl not found Ackmeco Programming 0 06-08-2004 10:29 PM
Unable to compile in RH9! jhawk_one Red Hat 1 09-03-2003 01:25 PM
LaBrea/libnet/libpcap compile woes hoffswell Linux - Newbie 0 03-10-2003 12:48 PM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration