我最近安裝了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