Linux-eclipse CDT + GCC installation (2014.10.2)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.