Install Eclipse CDT + GCC in Linux

Source: Internet
Author: User

Install Eclipse CDT + GCC in Linux

 

2. Download JDK and select Linux32-bit. Unzip the default directory: jdk1.8.0 _ 20.Copy the folder to jvm.

Sudo cp-r ~ /Jdk1.8.0 _ 20 // usr/lib/jvm /;

 

3. Modify the profile ):

# Configure Environment Variables

Sudo gedit ~ /. Profile

Add:

Export JAVA_HOME =/usr/lib/jvm/jdk1.8.0 _ 20

Save and close, and use source to update

$ Source ~ /. Profile

Use the env command to view the JAVA_HOME Value

$ 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/usr/lib/jvm/jdk1.8.0.5/bin/java 300

Just enter the number before sun jdk.

$ Sudo update-alternatives -- install/usr/bin/javac/usr/lib/jvm/jdk1.8.0.5/bin/javac 300

$ Sudo update-alternatives -- config java

$ Sudo update-alternatives -- config javac

Select a new mode.

5. Open Eclipse and install CDT

Installation Source:

Software repository: http://download.eclipse.org/tools/cdt/releases/8.4

6. Update gcc

Note that there is a space between dep gcc

Sudo apt-get build-dep gcc

7. Select Linux GCC for the new project.

Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC Build Process Diagram

Install the cross-compiler arm-none-linux-gnueabi-GCC in Ubuntu 12.10

Install and use Vim + GCC + GDB in Ubuntu

Switch two GCC versions in Ubuntu

GCC details: click here
GCC: click here

This article permanently updates the link address:

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.