Created
December 7, 2023 23:02
-
-
Save rustyrazorblade/1a326496cced131db34c100452821519 to your computer and use it in GitHub Desktop.
compile bcc tools on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment