fix(apps/installer): install libstdc++-16-dev on Ubuntu 26.04 (#26940)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
sudlud 2026-08-03 22:11:32 +02:00 committed by GitHub
parent 357f2eb89f
commit a8ac7959e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -76,7 +76,9 @@ runs:
libboost-all-dev libbz2-dev libmysql++-dev \
libreadline6-dev libssl-dev libtool openssl zlib1g-dev
if [[ "$(lsb_release -sr)" == "26.04" ]]; then
sudo apt-get -y install libgoogle-perftools-dev default-libmysqlclient-dev
# libstdc++-16-dev: clang 21 links against the GCC 16 toolchain, the
# default g++ (GCC 15) only brings the GCC 15 C++ dev files
sudo apt-get -y install libgoogle-perftools-dev default-libmysqlclient-dev libstdc++-16-dev
else
sudo apt-get -y install google-perftools libmysqlclient-dev libncurses5-dev
fi

View file

@ -36,8 +36,11 @@ apt-get -y install ccache clang cmake curl make unzip jq screen tmux \
# version-specific deps
if [[ "$UBUNTU_VERSION" == "26.04" ]]; then
# libstdc++-16-dev: clang 21 links against the GCC 16 toolchain, while the
# default g++ is GCC 15 and only brings the GCC 15 C++ dev files, so cmake
# fails with "cannot find -lstdc++" without it.
$SUDO DEBIAN_FRONTEND="noninteractive" \
apt-get -y install libgoogle-perftools-dev default-libmysqlclient-dev
apt-get -y install libgoogle-perftools-dev default-libmysqlclient-dev libstdc++-16-dev
else
$SUDO DEBIAN_FRONTEND="noninteractive" \
apt-get -y install google-perftools libmysqlclient-dev libncurses5-dev libncursesw5-dev