Skip to content

Commit

Permalink
Update ubuntu xenial gcc version to 8.2.0
Browse files Browse the repository at this point in the history
Install GCC version 8.2. This is necessary in order to compile on an old
system with glibc 2.23 using a more modern compiler.
  • Loading branch information
foxzi committed Dec 7, 2023
1 parent 50caae4 commit ec5c11b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ubuntu/xenial/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,16 @@ RUN apt-get update && apt-get install -y --force-yes \
alien \
dh-systemd

# Install gcc-8
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install build-essential software-properties-common zlib1g-dev -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update -y && \
apt-get install gcc-8 g++-8 -y && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
update-alternatives --config gcc

# Enable sudo without password
RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

0 comments on commit ec5c11b

Please sign in to comment.