红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Fedora 8使用Eclipse + CDT开发C/C++程序

Fedora 8使用Eclipse + CDT开发C/C++程序

1.安装JDK

下载JDK(http://java.sun.com/)

我下载的是 jdk-6u10-ea-bin-b12-linux-i586-19_feb_2008-rpm.bin

文件放在你想安装的目录里,比如/usr/java目录

#./jdk-6u10-ea-bin-b12-linux-i586-19_feb_2008-rpm.bin

2.修改PATH

#gedit /etc/profile

在最后追加

export JAVA_HOME=/usr/java/jdk1.6.0_10
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin

重启,下次登录时,用java -version 测试是否成功

3.安装eclipse

About Fedora Eclipse

With the release of Fedora Core 4 we have included a natively-compiled version of the Eclipse IDE using GCJ. Natively compiling Eclipse allows us to include it in the Fedora Core distribution because it is not dependant on proprietary JVMs. It also allows for a speed boost as natively compiled code can potentially run faster than interpreted code. GCJ and the Classpath library are in a state of constant improvement and this benefits a natively compiled Eclipse directly.
Install
To install Eclipse SDK on Fedora Core (4 or higher), run:

    yum install eclipse-pde-devel

To install the Java IDE, use:

    yum install eclipse-jdt

To install the C/C++ Development Tools, run:

    yum install eclipse-cdt

Additional plug-ins:

    yum install eclipse-bugzilla

    yum install eclipse-changelog

    yum install eclipse-pydev

Alternately, you can install the bugzilla, changelog or autotools plugin with our Eclipse update site:

    http://sourceware.org/eclipse/update/

TOP

发新话题