linux下怎么配置eclipse的gcc编译器
1个回答
展开全部
以下是我在ubuntu-10.10下安装eclipse过程:
安大御装jdk
# cd /opt
# mkdir java
# bash jdk-6u26-linux-i586.bin
# mv jdk1.6.0_26 java/
# mv /etc/alternatives/java /etc/alternatives/java.gnu
# ln -s /前高opt/java/jdk1.6.0_26/bin/java /etc/alternatives/java
# export JAVA_HOME=/opt/java
安装jre
# cd /opt
# bash jre-6u26-linux-i586.bin java/
# mv jre1.6.0_26 java/
安装eclipse
# cd /opt
# tar zxvf eclipse-linuxtools-indigo-incubation-linux-gtk.tar.gz
# export PATH=/opt/eclipse:$PATH
设置环境变量(在文件末尾添加如下内慧仿尺容)
# sudo vi /etc/profile
export JAVA_HOME=/opt/java
export CLASSPATH=$CLASSPATH:$JAVA_HOME/jdk1.6.0_26/lib:$JAVA_HOME/jre1.6.0_26/lib
export PATH=$PATH:$JAVA_HOME/jdk1.6.0_26/bin:$JAVA_HOME/jre1.6.0_26/bin
export PATH=$PATH:/opt/eclipse
安装cdt(c/c++ development toolkit)
# mkdir -p /opt/cdt
# cd /opt/cdt
# unzip ../cdt-master-5.0.0.zip
# cp -r plugins/* /opt/eclipse/plugins/
# cp -r features/* /opt/eclipse/features/
注意:预先装好g++,gcc
安大御装jdk
# cd /opt
# mkdir java
# bash jdk-6u26-linux-i586.bin
# mv jdk1.6.0_26 java/
# mv /etc/alternatives/java /etc/alternatives/java.gnu
# ln -s /前高opt/java/jdk1.6.0_26/bin/java /etc/alternatives/java
# export JAVA_HOME=/opt/java
安装jre
# cd /opt
# bash jre-6u26-linux-i586.bin java/
# mv jre1.6.0_26 java/
安装eclipse
# cd /opt
# tar zxvf eclipse-linuxtools-indigo-incubation-linux-gtk.tar.gz
# export PATH=/opt/eclipse:$PATH
设置环境变量(在文件末尾添加如下内慧仿尺容)
# sudo vi /etc/profile
export JAVA_HOME=/opt/java
export CLASSPATH=$CLASSPATH:$JAVA_HOME/jdk1.6.0_26/lib:$JAVA_HOME/jre1.6.0_26/lib
export PATH=$PATH:$JAVA_HOME/jdk1.6.0_26/bin:$JAVA_HOME/jre1.6.0_26/bin
export PATH=$PATH:/opt/eclipse
安装cdt(c/c++ development toolkit)
# mkdir -p /opt/cdt
# cd /opt/cdt
# unzip ../cdt-master-5.0.0.zip
# cp -r plugins/* /opt/eclipse/plugins/
# cp -r features/* /opt/eclipse/features/
注意:预先装好g++,gcc
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |