I want to install CUDA 8 in my Ubuntu 18.04 which needs gcc 5.3.1. If I use sudo apt install gcc-5.3 g++-5.3
then it gives me the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-5.3
E: Couldn't find any package by glob 'gcc-5.3'
E: Couldn't find any package by regex 'gcc-5.3'
E: Unable to locate package g++-5.3
E: Couldn't find any package by glob 'g++-5.3'
E: Couldn't find any package by regex 'g++-5.3'
Can someone please guide me to install gcc 5.3.1? Thank you.
sudo apt install g++-5
is by default installing gcc 5.5 which is not supported by CUDA 8. It is specifically asking for gcc 5.3.1 – Ajinkya Bankar Mar 24 '21 at 18:58