CDT是在eclipse平臺上進行c/c++程序開發的插件。首先安裝eclipse平臺。
1、在Ubuntu 16.04上查看 eclipse是否已經安裝:
eclipse
若已經安裝,則會進入到eclispe平臺; 若未安裝,則運行如下命令:
sudo apt install eclipse-platform
2、安裝c/c++開發環境
使用如下命令:
sudo apt-get install build-essential
sudo apt-get install eclipse-cdt
使用此兩條命令,成功安裝eclipse CDT.
3、解決“終端輸入eclipse後,在終端下就不能進行其它的操作”的問題
#vi ~/.profile
在profile文件的最後邊增加一句:alias eclipse='eclipse&';保存,退出
#source ~/.profile