1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-13 00:37:41 +02:00

Install build-essential to provide C standard library headers

This commit is contained in:
billz 2025-05-01 00:33:12 -07:00
parent 16afef3e13
commit cc1832a296

View File

@ -833,7 +833,7 @@ function _enable_network_activity_monitor() {
if ! command -v gcc >/dev/null 2>&1; then
echo "gcc not found, installing..."
sudo apt-get update
sudo apt-get install -y gcc || _install_status 1 "Failed to install gcc"
sudo apt-get install -y build-essential || _install_status 1 "Failed to install build tools"
fi
sudo gcc -O2 -o /usr/local/bin/raspap-network-monitor $webroot_dir/installers/raspap-network-monitor.c || _install_status 1 "Failed to compile raspap-network-monitor.c"
echo "Copying raspap-network-activity@.service to /lib/systemd/system/"