How to install gcc 5.3.1 in Ubuntu 18.04 LTS

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.

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like