1. 程式人生 > >ubuntu 安裝 eclipse 及其CDT

ubuntu 安裝 eclipse 及其CDT


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