红联Linux门户
Linux帮助

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

发布时间:2008-03-01 00:35:26来源:红联作者:xgbmhc
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/
文章评论

共有 0 条评论