歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu安裝Eclipse for C/C++及相關配置

Ubuntu安裝Eclipse for C/C++及相關配置

日期:2017/2/28 13:58:39   编辑:Linux教程

Ubuntu安裝Eclipse for C/C++及相關配置

1,安裝JDK:

sudo apt-get install aptitude

sudo aptitude search openjava

sudo aptitude install openjdk-7-jdk

然後輸入:java -version;javac -version進行測試,即可判斷是否安裝成功。

2,去Eclipse官方網站下載Eclipse(eclipse-cpp-mars-R-linux-gtk.tar.gz),然後解壓:

tar -xzf eclipse-cpp-mars-R-linux-gtk.tar.gz -C ~/

3,創建快捷方式:右鍵Eclipse可執行文件,點擊創建快捷方式,然後將快捷方式放到桌面即可。

4, 安裝CDT(此步可跳過):

方法1)去Eclips官方下載CDT,然後解壓至Eclipse目錄即可。

方法2)在help->software updates->find and install...中,選擇search for new features to install,然後點擊new remote site按鈕,添加如下地址: http://download.eclipse.org/tools/cdt/releases/8.7,然後選中它,eclipse就會到這個地址查找新的cdt,等一會,列出cdt的版本,選擇最新的,然後一路next,它就會開始從網上下載並安裝,安裝完後會提示重啟eclipse。

5,測試Eclipse:編寫一個Hello world程序進行測試即可。

配置相關問題:

字體修改:

進入左側樹結構依次選擇General->Appearance->Colors and Fonts或者直接在搜索框輸入Colors 選擇Colors and Fonts,

在Colors and Fonts界面框中中可以看到各種的格式設置,設置base下的Text Font,選擇後,點擊右側的Edit按鈕,可以打開格式編輯框,選擇需要的格式樣式,點擊確定即可。

修改前:

修改後:

Eclipse漢化方法:

Installing the language packs

  • Open the install wizard with 'Help' > 'Install new software...'
  • Add the Babel p2 repository: http://download.eclipse.org/technology/babel/update-site/R0.13.0/mars
  • Select/install your language pack of choice
  • Restart Eclipse and you should get a translated Eclipse

--------------------------------------分割線 --------------------------------------

Ubuntu 14.04 LTS安裝Java 8和Eclipse 4.4 http://www.linuxidc.com/Linux/2014-11/109217.htm

Hadoop Eclipse 插件編譯安裝1.2.0 http://www.linuxidc.com/Linux/2013-07/87428.htm

Hadoop在Eclipse中的插件編譯 http://www.linuxidc.com/Linux/2013-04/83295.htm

Hadoop 1.2.1編譯Eclipse插件 http://www.linuxidc.com/Linux/2013-10/91666.htm

Ubuntu 13.10安裝JDK、Eclipse for C/C++(解決全局菜單問題) http://www.linuxidc.com/Linux/2013-11/92305.htm

如何在Ubuntu 14.04中安裝最新版Eclipse http://www.linuxidc.com/Linux/2014-08/105090.htm

--------------------------------------分割線 --------------------------------------

Eclipse 的詳細介紹:請點這裡
Eclipse 的下載地址:請點這裡

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved