liunx + eclipse + c++ +centos

在centos6.5上安装eclipse for c++

一,先去官网下载 eclipse安装包

网址http://www.eclipse.org/downloads,找到下面的IDE下载

 

技术分享图片

 

解压缩

tar -xzvf  eclipse-cpp-neon-3-linux-gtk-x86_64.tar.gz

 

将解压缩的目录复制到/usr/local/目录下

 

创建快捷方式

在桌面的空白处右击,选择create Launcher,名称填写eclipse,command点击browse按钮找到/usr/local/eclipse/eclipse,点击左上角的图标按钮找到/usr/local/eclipse/icon.xpm,

点击OK生成快捷方式。

技术分享图片

 

 

二,安装jdk (我下载的eclipse需要1.8版本的支持)

1)先查看之前是否安装过 

rpm -qa | grep jdk

输出结果如下:

java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64

java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64

 

2)查看已安装java版本

 java -version,

 

3)如果之前安装过且版本过低则卸载重新安装,eg

yum remove java-1.6.0-openjdk

yum remove java-1.7.0-openjdk

 

 

4)从官网下载jdk安装包rpm,

技术分享图片

 

在下载的目录输入以下指令:

rpm -ivh jdk-8u161-linux-x64.rpm

 

5)设置全局环境变量

 

我们可以用如下命令来轻松设置你安装JDK的环境变量:

export JAVA_HOME=/usr/java/jdk1.8.0_161/

export PATH=$PATH:$JAVA_HOME

 

现在,让我们用下面的命令来查看JDK的环境变量:

echo $JAVA_HOME

 

输出结果如下:

/usr/java/jdk1.8.0_161/

 

 

版本代号 平台版本 主要版本发行日期 SR1发行日期 SR2发行日期 需要的JDK最低版本
Callisto 3.2 2006年6月26日 N/A N/A JDK1.4
Europa 3.3 2007年6月27日 2007年9月28日 2008年2月29日 JDK1.5
Ganymede 3.4 2008年6月25日 2008年9月24日 2009年2月25日 JDK1.5
Galileo 3.5 2009年6月24日 2009年9月25日 2010年2月26日 JDK1.5
Helios 3.6 2010年6月23日 2010年9月24日 2011年2月25日 JDK1.5
Indigo 3.7 2011年6月22日 2011年9月23日 2012年2月24日 JDK1.5
Juno 3.8及4.2 2012年6月27日 2012年9月28日 2013年3月1日 JDK1.5
Kepler 4.3 2013年6月26日 2013年9月27日 2014年2月28日 JDK1.6
Luna 4.4 2014年6月25日 2014年9月25日 2015年2月27日 JDK1.6
Mars 4.5 2015年6月24日 2015年9月22日 2016年2月24日 JDK1.7
             
Neon 4.6 2016年6月22日 2016年9月28日 2016年12月21日 2017年3月23日 JDK1.8
Oxygen 4.7 2017年6月28日 2017年9月27日 2017年12月20日 2018年3月21日 JDK1.8
Photon 4.8 2018年6月27日 2018年9月 2018年12月 2019年3月  
Eclipse官网说明地址:http://wiki.eclipse.org/Eclipse/Installation
部分说明如下:
Eclipse 4.7 (Oxygen)
Eclipse 4.7 (Oxygen) was released on June 28, 2017. Oxygen.2 is the supported release. See Oxygen schedule.

Consider using the Installer. Please see 5 Steps to Install Eclipse.

A Java 8 or newer JRE/JDK is required to run all Oxygen packages based on Eclipse 4.7, including running the Installer. The reasoning behind requiring Java 8 are discussed here.

Eclipse 4.6 (Neon)
Eclipse 4.6 (Neon) was released on June 22, 2016. See Neon schedule.

Consider using the Installer. Please see 5 Steps to Install Eclipse.

A Java 8 JRE/JDK is required to run all Neon packages based on Eclipse 4.6, including the Installer. The reasoning behind requiring Java 8 are discussed here.

Eclipse 4.5 (Mars)
Eclipse 4.5 (Mars) was released on June 24, 2015.

Consider using the Installer! Please see 5 Steps to Install Eclipse.

A Java 7 JRE/JDK is required for all Mars package downloads based on Eclipse 4.5, including the Installer. Information concerning tested configurations for Eclipse 4.5 is provided here.

Eclipse 4.4 (Luna)
Eclipse 4.4 (Luna) was released on June 25, 2014.

A Java 7 JRE/JDK is required for most of the Luna package downloads based on Eclipse 4.4. Information concerning tested configurations for Eclipse 4.4 is provided here.

Eclipse 4.3 (Kepler)
Eclipse 4.3 (Kepler) was released in June 2013.

A Java 6 JRE/JDK is recommended for Eclipse 4.3. More information concerning tested configurations for Eclipse 4.3 is provided here.
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值