Build and Run

Build

Prerequisite

  • golang 1.12+
  • golang yacc
  • git

Download the source code

  • BFE code can be found in following repo:

    https://github.com/baidu/bfe

  • Clone the main BFE repo:

    1. $ mkdir -p gocode/src/github.com/baidu
    2. $ cd gocode/src/github.com/baidu
    3. $ git clone https://github.com/baidu/bfe
    4. $ cd bfe

Build from source

  • Run build script in source directory of bfe (src/github.com/baidu/bfe):

    1. $ make
  • Run the tests:

    1. $ make test
  • BFE binary is generated as below:

    1. $ file output/bin/bfe
    2. output/bin/bfe: ELF 64-bit LSB executable ...

Run

  • Run bfe with the example configurations: conf

    1. $ cd output/bin/
    2. $ ./bfe -c ../conf -l ../log