1.通过终端下载(Ctrl+Alt+T)下载eclipse
(1) sudo apt-get update 注:更新软件源
(2) sudo apt-get install eclipse 注:ubuntu12.04下载的eclipse通常是indigo版本
(3) sudo apt-get install build-essential 注:下载gcc编译器
2.安装CDT
(1) 打开我们下载好的eclipse 注:路径:/usr/lib/eclipse
(2) Help->Install New SoftWare...
Work With ->Add->http://download.eclipse.org/releases/indigo->OK
Collaboration->Mylyn Context Connector: C/C++ Development
保存->重新打开eclipse
(3)Help->Install New SoftWare...
Work With ->Add->http://download.eclipse.org/releases/indigo->OK
Programming Languages>C/C++ Development Tools
保存->重新打开eclipse
原文地址:http://blog.csdn.net/wiseclown/article/details/39494295