1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-29 17:09:27 +02:00

Merge pull request #1841 from RaspAP/fix/c-devtoolchain

Fix: Install build-essential to provide C standard library headers
This commit is contained in:
Bill Zimmerman 2025-05-01 09:40:49 +02:00 committed by GitHub
commit 219c40b6fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -833,7 +833,7 @@ function _enable_network_activity_monitor() {
if ! command -v gcc >/dev/null 2>&1; then if ! command -v gcc >/dev/null 2>&1; then
echo "gcc not found, installing..." echo "gcc not found, installing..."
sudo apt-get update 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 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" 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/" echo "Copying raspap-network-activity@.service to /lib/systemd/system/"