make: yacc: Command not found building libpcap

Discussion in 'HOWTO-Related Questions' started by BruceWilkinson, Dec 21, 2006.

  1. BruceWilkinson

    BruceWilkinson New Member

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

    falko Super Moderator

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

    You can install bison like this:
    Code:
    apt-get install bison
     
  3. BruceWilkinson

    BruceWilkinson New Member

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

    BruceWilkinson New Member

    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.
     

Share This Page