Skip to content

Instantly share code, notes, and snippets.

@dosaboy
Last active February 6, 2025 13:52
Show Gist options
  • Save dosaboy/05da896c9572c0ad55bbe7b7dbd8dcc5 to your computer and use it in GitHub Desktop.
Save dosaboy/05da896c9572c0ad55bbe7b7dbd8dcc5 to your computer and use it in GitHub Desktop.
#!/bin/bash -eux
apt purge bpfcc-tools libbpfcc python3-bpfcc
wget https://github.com/iovisor/bcc/releases/download/v0.25.0/bcc-src-with-submodule.tar.gz
tar xf bcc-src-with-submodule.tar.gz
cd bcc/
apt install -y python-is-python3
apt install -y bison build-essential cmake flex git libedit-dev libllvm11 llvm-11-dev libclang-11-dev zlib1g-dev libelf-dev libfl-dev python3-distutils
apt install -y checkinstall
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_CMD=python3 ..
make
checkinstall -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment