Aktualisiere das Build-Skript, um C++ Standard auf Version 20 zu setzen. Ändere die Installation des C++ Compilers in install-dependencies.sh, um GCC 11 als Standard für Ubuntu 22 zu verwenden und entferne die Installation von GCC 15.

This commit is contained in:
Torsten Schulz (local)
2025-08-31 23:17:12 +02:00
committed by Torsten (PC)
parent 77520ee46a
commit 4b9311713a
4 changed files with 298 additions and 10 deletions

View File

@@ -44,16 +44,14 @@ apt install -y \
curl \
wget
# Installiere C++ Compiler (Ubuntu 22 hat GCC 11, aber wir brauchen GCC 15)
log_info "Installiere GCC 15..."
apt install -y software-properties-common
add-apt-repository -y ppa:ubuntu-toolchain-r/test
apt update
apt install -y gcc-15 g++-15
# Installiere C++ Compiler (Ubuntu 22 hat GCC 11, das reicht aus)
log_info "Installiere GCC 11 (Standard für Ubuntu 22)..."
apt install -y gcc g++
# Setze GCC 15 als Standard
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-15 100
# Prüfe verfügbare GCC Versionen
log_info "Verfügbare GCC Versionen:"
gcc --version | head -1
g++ --version | head -1
# Installiere PostgreSQL Development Libraries
log_info "Installiere PostgreSQL Development Libraries..."