Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1407  / 2 Years ago, sat, april 30, 2022, 8:28:11

I am using the gcc/g++ compilers as a part of the OpenFace installation process on my Ubuntu 22.04 based system. While downloading and installing the gcc, it automatically downloads the latest g++-11 version, whereas I require g++-8 version for the software to run. How can I replace/install the g++-8 package on my system without it auto-updating to g++-11? Help would be appreciated!


More From » apt

 Answers
6

The g++-8 package has been discontinued in the Ubuntu 22.04 and later default repositories. To install the g++-8 package from Ubuntu 21.10 in Ubuntu 22.04 run the following commands:


sudo apt update
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/g++-8_8.5.0-0ubuntu4_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/gcc-8_8.5.0-0ubuntu4_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/gcc-8-base_8.5.0-0ubuntu4_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/libgcc-8-dev_8.5.0-0ubuntu4_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/cpp-8_8.5.0-0ubuntu4_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/libmpx2_8.5.0-0ubuntu4_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-8/libstdc++-8-dev_8.5.0-0ubuntu4_amd64.deb
sudo apt install ./libmpx2_8.5.0-0ubuntu4_amd64.deb ./cpp-8_8.5.0-0ubuntu4_amd64.deb ./gcc-8-base_8.5.0-0ubuntu4_amd64.deb ./libgcc-8-dev_8.5.0-0ubuntu4_amd64.deb ./gcc-8_8.5.0-0ubuntu4_amd64.deb ./libstdc++-8-dev_8.5.0-0ubuntu4_amd64.deb ./g++-8_8.5.0-0ubuntu4_amd64.deb

[#354] Sunday, May 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zzlingots

Total Points: 414
Total Questions: 130
Total Answers: 117

Location: Sudan
Member since Tue, Sep 15, 2020
4 Years ago
zzlingots questions
;