[Build Development Environment] install Eclipse in Linux for C/C ++ development, linuxeclipse
C/C ++ IDE is selected in Linux. Eclipse is recommended.
Tools involved: JDK and Eclipse.
Refer to the http://www.cnblogs.com/lovickie/p/4364032.html to download JDK and Eclipse C ++, get the jdk-8u40-linux-i586.tar.gz and eclipse-cpp-luna-SR2-linux-gtk.tar.gz, assuming in/root/software.
Cd/root/software
Tar zxvf jdk-8u40-linux-i586.tar.gz
Tar zxvf eclipse-cpp-luna-SR2-linux-gtk.tar.gz
Vim ~ /. Bashrc
Add the following text at the end. Note that jdk1.8.0 _ 40 is the name of the extracted directory:
export JAVA_HOME=/root/software/jdk1.8.0_40export PATH=$PATH:$JAVA_HOME/binexport CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
Vim eclipse/eclipse. sh
The Edit content is as follows:
#!/bin/bashexport JAVA_HOME=/root/software/jdk1.8.0_40export PATH=$PATH:$JAVA_HOME/binexport CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/root/software/eclipse/eclipse -vm $JAVA_HOME/bin/java
Chmod a + x eclipse/eclipse. sh
Ln-s/root/software/eclipse. sh/root/Desktop/Eclipse
Note that the absolute path should be used when creating the link.
For eclipse. sh or desktop link, you can right-click "properties" and change the icon to/root/software/Eclipse/icon. xpm. Right-click "stretch icon" to adjust the icon size.
Run/root/software/eclipse. sh or double-click Eclipse on the desktop to view the Eclipse startup interface.
None.