所以,當我第一種類型的G ++在控制檯檢查,這是發生了什麼:克++被顯示爲已安裝後也易於得到安裝
[email protected]:~$ g++
The program 'g++' is currently not installed. You can install it by typing:
sudo apt-get install g++
至於建議,我安裝了G ++(沒有sudo易於得到更新和-f在此之前)。
[email protected]:~$ sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 121 not upgraded.
但是這表明,G ++安裝後,也這是我在命令行中得到再次:
[email protected]:~$ g++
The program 'g++' is currently not installed. You can install it by typing:
sudo apt-get install g++
請幫幫忙! (我在Ubuntu 14.04上)。
編輯1 (響應評論)
sudo update-alternatives --config g++
給出了這樣的輸出:
update-alternatives: error: no alternatives for g++
試着問上http://askubuntu.com – Adam
可能是'G ++'一些其他版本接手普通版本,然後移除。重新安裝'g ++'包可能會修復它。 –
http://askubuntu.com/questions/513349/how-can-i-know-that-i-have-g-installed-in-my-ubuntu –