Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit bca4ebb

Browse files
authored
Fix gcc version on Ubuntu 20.04 (#1030)
1 parent 5960def commit bca4ebb

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

scripts/installDeps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ then
8282
install_apt_deps
8383
if [[ "$OS_VERSION" =~ 20.04.* ]]
8484
then
85+
install_gcc_7
8586
install_boost
8687
fi
8788
fi

scripts/installDepsUnattended.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ then
6868
install_apt_deps
6969
if [[ "$OS_VERSION" =~ 20.04.* ]]
7070
then
71+
install_gcc_7
7172
install_boost
7273
fi
7374
fi

scripts/installUbuntuDeps.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ install_apt_deps(){
88
${SUDO} apt-get install m4 autoconf libtool automake cmake libfreetype6-dev libgstreamer-plugins-base1.0-dev -y
99
}
1010

11+
install_gcc_7(){
12+
${SUDO} apt-get install gcc-7 g++-7
13+
${SUDO} update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 100
14+
${SUDO} update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 100
15+
${SUDO} update-alternatives --set g++ /usr/bin/g++-7
16+
${SUDO} update-alternatives --set gcc /usr/bin/gcc-7
17+
}
18+
1119
install_mediadeps_nonfree(){
1220
install_fdkaac
1321
install_ffmpeg

0 commit comments

Comments
 (0)