Install and configure eclipse C \ c ++ editor in Linux

Source: Internet
Author: User
Tags gtk

Because the internship in the company required the code editor to use eclipse, so I had an understanding of eclipse. I used to think it was Java, and later I found that this was not the case. So out of curiosity, I installed the eclipse for linux version in my mobile hard drive Linux system. The following describes how to install the eclipse C \ c ++ editor in Linux (RedHat 5.

Step 1: download the file

A. Download JRE (Java Runtime Environment ). Http://java.sun.com/javase/downloads/index.jsp)

B. Download the eclipse SDK. Http://www.eclipse.org/downloads)

C. Download CDT. Http://www.eclipse.org/cdt/downloads.php)

Step 2: Install

A. Install JRE

I. [root @ localhost ~] # Mkdir/usr/local/Java

II. (download the archive jre-1_5_0_09-linux-i586-rpm.bin to the/usr/local/Java directory)

III. (start the installation process)

[Root @ localhost Java] #./jre-1_5_0_09-linux-i586-rpm.bin

(The binary license agreement is displayed, and the next page is displayed by control. After the license agreement is read, enter yes to continue the installation. At this point, decompress to generate a jre-1_5_0_9-linux-i586.rpm ). It is possible that the downloaded package is already rpm, so you can directly use the command: rpm-ivh xxxx. rpm for installation.

Set environment variables (not required)

[Root @ localhost Java] # vi/etc/profile

(Add the following content to the end of the file)

Path = $ path:/usr/Java/jre1.5.0 _ 09/bin

Export java_home =/usr/Java/jre1.5.0 _ 09

Export classpath = $ java_home/lib :.

(Restart Linux after saving the disk)

(Test whether Java is successfully installed)

[Root @ bogon eclipse] # Java-version

Java version "1.6.0"

Openjdk Runtime Environment (build 1.6.0-b09)

Openjdk client VM (build 1.6.0-b09, mixed mode)

[Root @ bogon eclipse] #

B. Install the eclipse SDK

I. (download the file eclipse-sdk-3.2.1-linux-gtk.tar.gz to the desktop)

Ii. [root @ localhost ~] # Cd/usr/local

Iii. [root @ localhost local] # CP ~ Desktop/eclipse-SDK-3.2.1-linux-gtk.tar.gz.

Iv. (decompress eclipse-sdk-3.2.1-linux-gtk.tar.gz)

[Root @ localhost local] # tar-zxvf eclipse-SDK-3.2.1-linux-gtk.tar.gz

V. [root @ localhost local] # cd eclipse

Vi. (execute eclipse)

[Root @ localhost eclipse] #./eclipse

In fact, eclipse can basically be used as an editor.

C. Install CDT

I. (download the file org.eclipse.cdt-3.1.1-linux.x86.tar.gz to the desktop)

Ii. [root @ localhost ~] # CP ~ // Desktop/org.eclipse.cdt-3.1.1-linux.x86.tar.gz.

Iii. (decompress org.eclipse.cdt-3.1.1-linux.x86.tar.gz)

[Root @ localhost ~] # Tar-zxvf org.eclipse.cdt-3.1.1-linux.x86.tar.gz

(The file will be resolved ~ /Eclipse directory)

IV. (install CDT plugin)

[Root @ localhost ~] CP-r Eclipse/plugins/./usr/local/Eclipse/plugins/

V. (start eclipse with support for C and C ++ projects)

Related Article

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.