我尝试在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
谁能告诉我该怎么做?
1条答案
按热度按时间erhoui1w1#
gcc-4.5或g++4.5不在大多数Ubuntu软件发行版中。如果你想得到这个版本,请参阅gcc releases和successful builds。
另一个选择是使用“PPA for Ubuntu Toolchain Uploads (restricted)” team的版本。
到源代码列表中,然后运行
sudo apt-get update
。您将能够使用sudo apt-get install gcc-4.5
。