在centos (linux) 搭建 eclipse c++开发分环境

网上说得很多,很烦,操作了很多,总有错误,但解决方案很简单。步骤就下面几步就OK了

安装gcc 、g++

yum install gcc

yum install gcc-c++

安装jdk,配置jdk的环境(网上很多,就不用多说了)

 下载软件:

eclipse:   http://www.eclipse.org/downloads/?osType=linux

CDT  :  http://www.eclipse.org/cdt/downloads.php

eclipse 解压就可以使用。

CDT可以解压后放在eclipse的安装目录,也可以按照主页上说明的那样安装:

The CDT can either be installed as part of the Eclipse C/C++ IDE packaged zip file or installed into an existing Eclipse using the "Install New Software..." dialog and entering the p2 repository URLs listed below.

p2 software repository: http://download.eclipse.org/tools/cdt/releases/juno.

 

这样就都OK了,可以使用了。(记得连网哦!)

还有一个东西,忘了呵呵,安装JDK ,这个简单 yum install java-1.6.0-openjdk.i686

安装完JDK ,eclipse会自动的找到JDK ,也不用做什么的环境变量的配置

 

重要问题:

“launch failed .binary not found linux”

新建了工程后,就在菜单-->project-->build project , 就可以正常运行了。

原文地址:https://www.cnblogs.com/skyofbitbit/p/3701523.html