如何在 Ubuntu 18.04 LTS 中安装 gcc 5.3.1

如何在 Ubuntu 18.04 LTS 中安装 gcc 5.3.1

我想在需要 gcc 5.3.1 的 Ubuntu 18.04 中安装 CUDA 8。如果我使用sudo apt install gcc-5.3 g++-5.3,它会给出以下错误:

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'

有人可以指导我安装 gcc 5.3.1 吗?谢谢。

相关内容