How I got cflowd-2-1-b1 to install

From: Jeffrey Papen (jpapen@yahoo-inc.com)
Date: Fri Mar 23 2001 - 12:19:30 PST

  • Next message: Hendrik Visage: "Re: Packet Loss via Netflow"

    I am by no means a sys admin type, but I've gone through a tremendous amount of pain related to installing the new version of cflowd. This is what I've learned:

    On linux boxes, I never had a problem (go figure). On Free BSD Boxes I would get problems compiling arts and also compiling cflowd on freebsd boxes. One example of an arts error during the make install process would be:
    cd src; make install
    if [ ! -d /usr/local/arts ]; then mkdir /usr/local/arts ; fi
    if [ ! -d /usr/local/arts/lib ]; then mkdir /usr/local/arts/lib ; fi
    @:No such file or directory
    *** Error code 1

    Stop in /home/jpapen/mod/cflowd/arts++-1-1-a6/classes/src.
    *** Error code 1

    Stop in /home/jpapen/mod/cflowd/arts++-1-1-a6/classes.
    *** Error code 1

    Stop in /home/jpapen/mod/cflowd/arts++-1-1-a6.
    bash-2.04#

    The problem was fixed when I got the gnu version of make (which btw, also requires bison and maybe flex). Autoconf (for Plonka's Patch) required m4 version 1.1 or later

    The make I had on my system before was in /usr/bin/make. When make --version didn't work, I figured I didn't have the gnu version so I should go get it. Here is my script for installing all of these programs. Each of the gzip'd files are in the same dir.
    gunzip *.gz

    # Install gnu make
    # ftp://gatekeeper.dec.com/pub/GNU/make/
    tar -xvf make-3.79.1.tar
    cd make-3.79.1
    ./configure
    make
    make install
    cd ..

    # install M4 1.4
    # ftp://gatekeeper.dec.com/pub/GNU/m4/
    tar -xvf m4-1.4.tar
    cd m4-1.4
    ./configure
    /usr/local/bin/make
    /usr/local/bin/make install
    cd ..

    # put /usr/local/bin in path before /bin
    # I'm using bash - Your mileage may vary
    export PATH=/usr/local/bin:$PATH

    # install autoconf
    # ftp://gatekeeper.dec.com/pub/GNU/autoconf/
    tar -xvf autoconf-2.13.tar
    cd autoconf-2.13
    ./configure
    /usr/local/bin/make
    /usr/local/bin/make install
    cd ..

    # Install Patch 2.5.4
    # ftp://gatekeeper.dec.com/pub/GNU/patch/
    #
    # NOTE:
    # I comment out the HAVE_SETMODE because of an error on FreeBSD 4.1
    # You Mileage may vary, so tread with caution
    #
    tar -xvf patch-2.5.4.tar
    cd patch-2.5.4
    ./configure
    echo -
    echo - comment out the HAVE_SETMODE LINE BELOW
    echo - /* Define if you have the setmode function. */
    echo - /* */
    perl -e 's%#define HAVE_SETMODE 1%/* #define HAVE_SETMODE 1 */%g' -pi ./config.h
    /usr/local/bin/make
    /usr/local/bin/make install
    cd ..

    # Install Bison (required for gnu make)
    # ftp://gatekeeper.dec.com/pub/GNU/bison/
    tar -xvf bison-1.28.tar
    cd bison-1.28
    ./configure
    /usr/local/bin/make
    /usr/local/bin/make install
    cd ..

    # Install Arts file
    # http://net.doit.wisc.edu/~plonka/cflowd/
    tar -xvf arts++-1-1-a6.tar
    cd arts++-1-1-a6
    ./configure
    /usr/local/bin/make
    /usr/local/bin/make install
    cd ..

    # Install Dave Plonka's Patch for raw flows processing on cflowd
    # http://net.doit.wisc.edu/~plonka/cflowd/
    tar -xvf cflowd-2-1-b1.tar
    cd cflowd-2-1-b1
    /usr/local/bin/patch -p0 < ../cflowd-2-1-b1-djp.patch
    autoconf
    ./configure --with-artspp=/usr/local/arts
    /usr/local/bin/make
    /usr/local/bin/make install
    cd ..

    # install Dave Plonka's Cflowd processing perl module
    # http://net.doit.wisc.edu/~plonka/Cflow/
    tar -xvf Cflow-1.030.tar
    cd Cflow-1.030
    /usr/local/bin/perl Makefile.PL
    make
    make test
    make install
    cd ..

    So, what have I learned from all of this? Being a router jockey rules - and being a sys admin sucks!

    Hope this helps,
    - Jeffrey

    -- 
    Yahoo Network Engineering
    email: jeffrey@papen.com         beep: page-jeffrey@papen.com
    work: 408-616-3897               fax:  408-530-5307
    cell: 650-580-2684               page: 877-701-1126
    Yahoo Messenger ID: jpapen
    --
    cflowd mailing list
    cflowd@caida.org
    



    This archive was generated by hypermail 2b29 : Fri Mar 23 2001 - 12:27:09 PST