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

来源:互联网 发布:发那科攻丝编程g84 编辑:程序博客网 时间:2024/06/07 06:17

作者:rao_warrior

转自:http://blog.csdn.net/rao_warrior/article/details/7770562


网上说得很多,很烦,操作了很多,总有错误,但解决方案很简单。步骤就下面几步就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 , 就可以正常运行了。




原创粉丝点击