Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st December 2006, 16:55
BruceWilkinson BruceWilkinson is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default make: yacc: Command not found building libpcap

I'm working through Intrusion Detection With BASE And Snort tutorial (http://www.howtoforge.com/intrusion_..._base_snort_p3) on Ubuntu. I ran into a problem at make/install LIBPCAP (page 3). When I execute make, I get the error shown below. I included the last 4 lines of output from make:

lex -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127

Can anyone help me figure out what to do now?

How do I install bison so the libpcap configure script finds it? Right now bison is installed in the snorttemp/bison-2.3 directory (see article). It's at the same level as libpcap.

Bruce
Reply With Quote
Sponsored Links
  #2  
Old 22nd December 2006, 14:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
apt-cache search yacc
?

You can install bison like this:
Code:
apt-get install bison
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th December 2006, 15:38
BruceWilkinson BruceWilkinson is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default apt-cache search yacc output

Output from apt-cache search yacc output:

bison - A parser generator that is compatible with YACC
byacc - public domain Berkeley LALR Yacc parser generator
cup - LALR parser generator for Java(tm)
exuberant-ctags - build tag file indexes of source code definitions
gob2 - GTK+ Object Builder
libtimedate-perl - Time and date functions for Perl
pccts - The Purdue Compiler Construction Tool Set (PCCTS).
bison-1.35 - A parser generator that is compatible with YACC
btyacc - Backtracking parser generator based on byacc
cl-yacc - parser generator for Common Lisp
cscope - Interactively examine a C program source
cutils - C source code utilities
freebsd5-buildutils - Utilities for building FreeBSD 5.x sources
global - Source code search and browse tools
gob - GTK+ Object Builder
gobo - Portable Eiffel tools and libraries
gobo-doc - Portable Eiffel tools and libraries (Documentation)
happy - Parser generator for Haskell
jflex - lexical analyzer generator for Java
kimwitu - Compiler development tool, complementary to lex and yacc.
kimwitu++ - A (syntax-)tree-handling tool (term processor)
kimwitu-doc - Documentation for compiler development tool kimwitu
lemon - The Lemon Parser Generator
libparse-recdescent-perl - Generates recursive-descent parsers in Perl
libparse-yapp-perl - Perl module for creating fully reentrant LALR parser OO Perl modules
ml-yacc - Parser generator for Standard ML
perl-byacc - The Berkeley LALR parser generator, Perl version
python-pyparsing - Python parsing module
python2.3-pyparsing - Python parsing module
python2.4-pyparsing - Python parsing module
racc - Ruby LALR parser generator
sloccount - Programs for counting physical source lines of code (SLOC)
styx - combined parser/scanner generator for C/C++
wyg - (Where's Your Grammar?) command line parser generator
mono-jay - LALR(1) parser generator oriented to Java/CLI
Reply With Quote
  #4  
Old 27th December 2006, 16:35
BruceWilkinson BruceWilkinson is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Got LIBPCAP make to work once bison installed

My previous problem with yacc was resolved when I installed bison. I was able to make and make install LIBPCAP.

Thanks for the help.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get failure yap HOWTO-Related Questions 1 19th November 2006 22:33
install Net::DNS chrno Installation/Configuration 4 5th September 2006 17:01
help on /etc/rc0.d/K20dnsctl -> ../init.d/dnsctl zimele General 13 23rd August 2006 16:06
Having Problems with KWiFiManager sbovisjb1 Installation/Configuration 7 17th April 2006 22:53
installation failed with make command not found Cirox Installation/Configuration 1 21st March 2006 13:16


All times are GMT +2. The time now is 15:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.