mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Update build_rust.sh script to be closer to develop
branch, prior to rebasing.
This commit is contained in:
parent
0e893cd0e5
commit
f4bca707fb
@ -9,40 +9,18 @@
|
|||||||
# Don't forget to setup `/etc/lqos.conf`
|
# Don't forget to setup `/etc/lqos.conf`
|
||||||
|
|
||||||
# Check Pre-Requisites
|
# Check Pre-Requisites
|
||||||
if ! bpftool help &> /dev/null
|
sudo apt install python3-pip clang gcc gcc-multilib llvm libelf-dev git nano graphviz curl screen llvm pkg-config linux-tools-common linux-tools-`uname -r` libbpf-dev libssl-dev esbuild
|
||||||
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 ! esbuild --help &> /dev/null
|
if ! rustup -V &> /dev/null
|
||||||
then
|
then
|
||||||
echo "esbuild is not installed."
|
echo "rustup is not installed."
|
||||||
echo "Let's try to install it"
|
echo "Visit https://rustup.rs and install Rust from there"
|
||||||
sudo apt-get install esbuild
|
echo "Usually, you can copy the following and follow the on-screen instructions."
|
||||||
|
echo "Please don't install Rust as root."
|
||||||
|
echo "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
echo "esbuild found."
|
echo "rustup 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
|
fi
|
||||||
|
|
||||||
# To enable heavy debug mode (slow)
|
# To enable heavy debug mode (slow)
|
||||||
|
Loading…
Reference in New Issue
Block a user