我最近在虚拟框中安装了 ubuntu 14.04。现在我想在其中安装 g++ 4.7。我正在终端中尝试此命令,但它不起作用。
sudo apt-get install g++-4.7
Reading package list... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package g++-4.7
E: Couldn't find any package by regex 'g++-4.7'
Run Code Online (Sandbox Code Playgroud)
但我发现 gcc 与 Ubuntu 14.04 安装本身一起存在。
我怎么能在 ubuntu 14.04 中安装 g++ 并且任何版本的 g++ 高于 4.7.2 对我来说都很好。