我最近安装了ubuntu 13.04,我是一个新的linux用户,但我无法编译g ++代码。ubuntu 13.04和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.
会感谢你的帮助。
尝试'sudo aptitude update'; 'sudo aptitude upgrade'; 'sudo aptitude install build-essentials g ++ - 4.8';顺便说一句你的问题与源代码无关,所以关于堆栈溢出问题 –
是什么让你觉得你需要另一个回购?你需要4.8版吗? Ubuntu 13.04拥有'g ++ - 4.7',对于大多数情况来说,它应该是“足够好”的。旧版本4.4,4.5和4.6也可用。 –
@BasileStarynkevitch小错字,它实际上是'build-essential' <<单数,而不是复数:) – 2013-08-29 15:44:08