mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
build_rust.sh checks for dependencies
On start, the "build_rust.sh" script checks for the availability of bpftool, pkg-config and clang/LLVM. If these aren't found, it fires up an "apt-get install" for the appropriate packages.
This commit is contained in:
parent
beead5a303
commit
f42a1a5908
@ -8,6 +8,34 @@
|
||||
#
|
||||
# Don't forget to setup `/etc/lqos.conf`
|
||||
|
||||
# Check Pre-Requisites
|
||||
if ! bpftool help &> /dev/null
|
||||
then
|
||||
echo "bpftool is not installed."
|
||||
echo "Let's try to install it"
|
||||
sudo apt-get install linux-tools-common linux-tools-`uname -r`
|
||||
else
|
||||
echo "bpftool found."
|
||||
fi
|
||||
|
||||
if ! pkg-config --help &> /dev/null
|
||||
then
|
||||
echo "pkg-config is not installed."
|
||||
echo "Let's try to install it"
|
||||
sudo apt-get install pkg-config
|
||||
else
|
||||
echo "pkg-config found."
|
||||
fi
|
||||
|
||||
if ! clang -v &> /dev/null
|
||||
then
|
||||
echo "LLVM/clang is not installed."
|
||||
echo "Let's try to install it"
|
||||
sudo apt-get install llvm libelf-dev gcc gcc-multilib libbpf-dev
|
||||
else
|
||||
echo "LLVM/clang found."
|
||||
fi
|
||||
|
||||
# To enable heavy debug mode (slow)
|
||||
#BUILD_FLAGS=""
|
||||
#TARGET=debug
|
||||
|
Loading…
Reference in New Issue
Block a user