我最近安装了ubuntu 13.04,我是一个新的linux用户,但我无法编译g ++代码。
它说
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
当我尝试使用以下语句安装g++
时
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
它说:
The following packages have unmet dependencies:
g++-4.8 : Depends: gcc-4.8 (= 4.8.1-2ubuntu1~13.04) but it is not going to be installed
Depends: libcloog-isl4 (>= 0.17) but it is not installable
Depends: libisl10 (>= 0.10) but it is not installable
E: Unable to correct problems, you have held broken packages.
非常感谢您的帮助。
答案 0 :(得分:2)
答案 1 :(得分:1)
您只是在命令行中尝试“sudo apt-get install g ++”? 因此包管理器将尝试安装缺少的包。不要求特定版本,你会没事的!它只是因为特定的版本要求而失败。