CentOS6.7 x64 安装eclipse+jre+cdt

来源:互联网 发布:书单 知乎 编辑:程序博客网 时间:2024/05/16 15:59

第一步:下载eclipse, jre, cdt

eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/keplersr2(Linux x64)

jre: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html(Linux x64)

cdt: http://www.eclipse.org/cdt/

下载好的文件分别是:

eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz

jre-8u111-linux-x64.tar.gz

cdt-9.1.0.zip


第二步:解压安装

安装eclipse: tar -zvxf  eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz eclipse

安装jre: tar -zvxf jre-8u111-linux-x64.tar.gz

cp -r jre1.8.0 eclipse/jre 

安装cdt: unzip cdt-9.1.0.zip -d cdt

cp -r cdt/plugins/ eclipse/

cp -r cdt/features/ eclipse/

 

至此,安装完成。


如果在centos6.x版本,打开文件时eclipse会崩溃,可以在eclipse文件下的eclipse.ini文件中,添加一下一句话:

-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false

0 0
原创粉丝点击