Eclipse is developed by Java. To run eclipse, you must install JDK. Enter javac in the command line to check whether JDK has been installed on the local machine.
1. Install JDK
Download the JDK from the official Oracle website and put it in the/usr/local/src/file. Because the Linux download connection cannot be found, you can only use ff to directly download the JDK on the interface.
1 , CD / USR / Local / SRC / # Enter the directory of the downloaded file
2 , Chmod u + X JDK - 6u22 - Linux - I586 - Rpm. Bin # Because the downloaded installation file does not have the X permission, add the X permission to the root user.
3 ,. / JDK - 6u22 - Linux - I586 - Rpm. Bin # Installation Complete
Enter Java-version in the command line to view the Java installation information.
2. Install eclipse
Download the eclipse version of Linux on the official eclipse website and save it to the/usr/local/src/directory. Here, I will download the eclipse-cpp-helios-sr1-linux-gtk.tar.gz version of for C/csung, it is a compressed package. Eclipse is free of installation and can be used directly after decompression.
1 , CD / USR / Local / SRC / # Go to the downloaded file directory
2 , Tar - Zxv - F eclipse - CPP - Helios - SR1 - Linux - Gtk.tar.gz - C / USR / Local / # -C: Decompress the directory to automatically generate the eclipse directory.
You can only start eclipse in the graphic interface, but not in command line mode. You can find the decompressed directory/usr/local/Eclipse/In the GUI like windows, and double-click the eclipse file to start it, you can also enter/usr/local/Eclipse/eclipse on the terminal to start the service.
3. Configure pydev
(1) Start eclipse and select help> install new software...
(2) In the workwith type http://www.fabioz.com/pydev/updates, click Add, eclipse automatically search for pydev plug-in, select it, step by step next to install
(3) Check whether pydev is successfully installed. Select help> about release st> Installation Details to go To the installed plug-in.
(4) configure the pydev interpreter, select Windows> preferences> pydev> interpreter-python, click new, find the installation package of your python, select python.exe, and then select the specific libraries.
(5) the final step is to use the pydev environment. In the top-right corner of Eclipse, it shows which development environment is currently in use. Select open perspective-> Other-> pydev-> OK, you can switch to the pydev development environment.