mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-24 09:10:16 -06:00
1.4 KiB
1.4 KiB
Complex install (Not Recommended)
Clone the repo
The recommended install location is /opt/libreqos
Go to the install location, and clone the repo:
cd /opt/
git clone https://github.com/LibreQoE/LibreQoS.git libreqos
sudo chown -R YOUR_USER /opt/libreqos
By specifying libreqos
at the end, git will ensure the folder name is lowercase.
Install Dependencies from apt and pip
You need to have a few packages from apt
installed:
sudo apt-get install -y 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
Then you need to install some Python dependencies:
cd /opt/libreqos
python3 -m pip install -r requirements.txt
sudo python3 -m pip install -r requirements.txt
Install the Rust development system
Go to RustUp and follow the instructions. Basically, run the following:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
When Rust finishes installing, it will tell you to execute a command to place the Rust build tools into your path. You need to either execute this command or logout and back in again.
Once that's done, please run:
cd /opt/libreqos/src/
./build_rust.sh
This will take a while the first time, but it puts everything in the right place.
Now, to build rust crates, run:
cd rust
cargo build --all