Skip to content

Instantly share code, notes, and snippets.

@zstone12
Created May 19, 2021 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zstone12/8e3554b8b7e34817b7adeaed276c4e4a to your computer and use it in GitHub Desktop.
Save zstone12/8e3554b8b7e34817b7adeaed276c4e4a to your computer and use it in GitHub Desktop.
install_bcc.sh
sudo apt-get update
sudo apt-get -y remove llvm-9
sudo apt-get -y install bison build-essential cmake flex git libedit-dev libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev libfl-dev
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake ..
make
sudo make install
cmake -DPYTHON_CMD=python3 .. # build python3 binding
pushd src/python/
make
sudo make install
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment