Eclipse CDT + GCC installation (2014.10.2)
This address: Http://blog.csdn.net/caroline_wendy
1. Install eclipse, download the Eclipse Standard version (Linux platform) on the official website and unzip to the current folder.
2. Download the JDK, select the Linux32 bit, then unzip the default directory:jdk1.8.0_20 ; Copy the folder into the JVM .
sudo cp-r ~/jdk1.8.0_20//usr/lib/jvm/ ;
3. Modify configuration file (profile):
# Configure Environment variables
sudo gedit ~/.profile
At the end add:
Export JAVA_HOME=/USR/LIB/JVM/JDK1.8.0_20
Then save the shutdown, using the source update under
$ source ~/.profile
Use the ENV command to see the value of Java_home
$ env
If java_home=/usr/lib/jvm/jdk1.8.0_20, the configuration is successful.
4. Modify the default JDK
# Modify the system's default JDK.
$ sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk1.8.0.5/bin/java 300
Just enter the numbers in front of the sun JDK.
$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.8.0.5/bin/javac 300
$ sudo update-alternatives--config java
$ sudo update-alternatives--config javac
Select the new mode.
5. Open Eclipse, install CDT
Installation Source:
Software repository: http://download.eclipse.org/tools/cdt/releases/8.4
6. Update gcc
Note there are spaces between DEP GCC
sudo apt-get build-dep gcc
7. New Project Select Linux GCC to use
Linux-eclipse CDT + GCC installation (2014.10.2)