Skip to content

Commit 629c11d

Browse files
authored
Merge pull request #3094 from mguthaus/ubuntu_dep_bug
Update Ubuntu 24/22 LTS dependencies
2 parents 4515b44 + 147bb4e commit 629c11d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

etc/DependencyInstaller.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ _installUbuntuPackages() {
133133
zlib1g \
134134
zlib1g-dev
135135

136+
packages=()
137+
# Choose libstdc++ version
138+
if _versionCompare $1 -ge 24.04; then
139+
packages+=("libstdc++-14-dev")
140+
elif _versionCompare $1 -ge 22.10; then
141+
packages+=("libstdc++-12-dev")
142+
fi
143+
apt-get install -y --no-install-recommends ${packages[@]}
144+
136145
# install KLayout
137146
if [[ $1 == "rodete" ]]; then
138147
apt-get -y install --no-install-recommends klayout python3-pandas

0 commit comments

Comments
 (0)