Ubuntu 14.04安装gcc-4.5和g++4.5

isr3a4wc  于 2022-11-13  发布在  其他
关注(0)|答案(1)|浏览(215)

我尝试在Ubuntu 14.04 sudo apt-get install gcc-4.5 g++-4.5 gcc-multilib g++-multilib上安装gcc-4.5和g++-4.5,但出现以下错误:

Package gcc-4.5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package g++-4.5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-4.5' has no installation candidate
E: Package 'g++-4.5' has no installation candidate

谁能告诉我该怎么做?

erhoui1w

erhoui1w1#

gcc-4.5或g++4.5不在大多数Ubuntu软件发行版中。如果你想得到这个版本,请参阅gcc releasessuccessful builds
另一个选择是使用“PPA for Ubuntu Toolchain Uploads (restricted)” team的版本。

deb http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu trusty main 
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/ppa/ubuntu trusty main

到源代码列表中,然后运行sudo apt-get update。您将能够使用sudo apt-get install gcc-4.5

相关问题