Skip to content

Commit

Permalink
fix(setup.sh): enable llvm tools installation on Ubuntu 24.04
Browse files Browse the repository at this point in the history
Signed-off-by: Navin Chandra <[email protected]>
  • Loading branch information
navin772 committed Jun 12, 2024
1 parent b9ea20c commit 6980678
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions contribution/self-managed-k8s/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,22 @@ if [ "$VERSION_CODENAME" == "focal" ] || [ "$VERSION_CODENAME" == "bionic" ]; th
sudo rm -f /usr/bin/$tool
sudo ln -s /usr/bin/$tool-12 /usr/bin/$tool
done
else # VERSION_CODENAME == jammy
elif [ "$VERSION_CODENAME" == "jammy" ]; then
sudo ./llvm.sh 14
for tool in "clang" "llc" "llvm-strip" "opt" "llvm-dis"; do
sudo rm -f /usr/bin/$tool
sudo ln -s /usr/bin/$tool-14 /usr/bin/$tool
done
else # VERSION_CODENAME == noble
sudo apt-get -y install llvm-14-tools
for tool in "clang" "llc" "llvm-strip" "opt" "llvm-dis"; do
sudo rm -f /usr/bin/$tool
sudo ln -s /usr/bin/$tool-14 /usr/bin/$tool
done
fi

# install libbpf-dev
if [ "$VERSION_CODENAME" == "jammy" ]; then
if [ "$VERSION_CODENAME" == "jammy" ] || [ "$VERSION_CODENAME" == "noble" ]; then
sudo apt-get -y install libbpf-dev
fi

Expand Down

0 comments on commit 6980678

Please sign in to comment.