Eclipse integrated with CDT provides a powerful IDE for developing C/C ++ programs, which makes some complicated transactions simple and easy, and improves the development efficiency of the project. In addition to the Eclipse software package, the installation of Eclipse in Linux also requires the java JDK (or the Java Runtime Environment JRE) to support Eclipse running. JDK contains the java Development Kit SDK. If you do not need java Development, you only need to install JRE. Before installing Eclipse, you need to prepare two
Eclipse integrated with CDT provides a powerful IDE for developing C/C ++ programs, which makes some complicated transactions simple and easy, and improves the development efficiency of the project.
In addition to the Eclipse software package, the installation of Eclipse in Linux also requires the java JDK (or the Java Runtime Environment JRE) to support Eclipse running. JDK contains the java Development Kit SDK. If you do not need java Development, you only need to install JRE.
You need to prepare two files before installing Eclipse:
Jre-6u25-linux-i586.bin
Eclipse-cpp-helios-SR2-linux-gtk.tar.gz
JRE: http://www.java.com/zh_CN/download/manual.jsp
Download file name jre-6u25-linux-i586.bin
Eclipse: http://www.eclipse.org/downloads/
Select Eclipse IDE for C/C ++ Developers for download. The file name is:
Eclipse-cpp-helios-SR2-linux-gtk.tar.gz
Install JRE
Copy the self-extracting Installation File jre-6u25-linux-i586.bin to the linux opt directory. Run the following command as the root user on the terminal:
# Chmod a + x jre-6u25-linux-i586.bin
#./Jre-6u25-linux-i586.bin
Then add the environment variable, which can be used by any user and used by the root user.
# Gedit etc/profile
Add export PATH = $ PATH:/opt/jre1.6.0 _ 25/bin at the end of the file
Install Eclipse
Eclipse is usually installed in the/opt path. The installation process is relatively simple. You only need to decompress the package.
Run the following command under the root user:
# Tar zxvf eclipse-cpp-helios-SR2-linux-gtk.tar.gz-C/
Then go to the/opt/eclipse directory
#./Eclipse
The running interface is as follows:
Add an Eclipse starter
Right-click Create initiator, as shown in, and add the name and program path. Similar to the shortcut in win.
Postscript
It took several hours to install Eclipse. This is also the first time that I have made such a detailed summary. I will share with you the simple experience of a cainiao. This is just a rough understanding of RedHat9.0. If you have any questions, please kindly advise.