Install eclipse + CDT on Ubuntu
Http://timjiang2000.spaces.live.com/blog/cns! 390af4e52022319a! 510. Entry
Installing eclipse + CDT with APT-Get is always a problem, so I plan to manually install the configuration and find this post, which is very detailed. In particular, you can refer to this for manual software installation in the future.
In addition, we found a package integrating eclipse + CDT when downloading it on the eclipse official website. This is more convenient.
---------------------------------------------
Suppose you have installed the Java environment!
0. For preparation, go to the following website to find the required software package!
Http://www.eclipse.org/downloads/index.php
1. Switch to the root user
Zhong @ Ubuntu :~ /Desktop $ Sudo-s-h
2. download the software package
Download the eclipse integrated development environment package (supporting Java Development) [required]:
Http://ftp.daum.net/eclipse/technology/epp/downloads/release/ganymede/SR1/
Download the CDT plug-in (C/C ++ Development supported) [optional installation]:
Root @ Ubuntu:/home/Zhong/desktop # wget-C http://update.eclipse.org/tools/cdt/releases/new/zips/2.1.1/org.eclipse.cdt.sdk-2.1.1-linux.x86.zip
Download the CDT Chinese Language Pack [optional installation]:
Root @ Ubuntu:/home/Zhong/desktop # wget-C http://download.eclipse.org/tools/cdt/releases/new/zips/2.0NL/NLpack-org.eclipse.cdt.sdk-2.0.x-linux.x86.zip
Download the UML2 plug-in (supporting UML2 Development) [optional installation]:
Root @ Ubuntu:/home/Zhong/desktop # wget-C http://download.eclipse.org/tools/uml2/scripts/download.php? Viewer = true & dropfile = ../downloads/drops/1.1.0/r200507070914/uml2-SDK-1.1.0.zip
Download the GEF-Graphical Editor framework plug-in [optional installation]:
Root @ Ubuntu:/home/Zhong/desktop # wget-C http://www.eclipse.org/downloads/download.php? File =/tools/GEF/downloads/drops/R-3.1-200507071758/GEF-ALL-3.1.zip & url = http://eclipse.mirrors.tds.net/tools/gef/downloads/drops/R-3.1-200507071758/GEF-ALL-3.1.zip&mirror_id=52
Download the EMF plug-in [optional installation]:
Root @ Ubuntu:/home/Zhong/desktop # wget-C http://eclipse.org/downloads/download.php? File =/tools/EMF/downloads/drops/2.1.0/r200507070200/emf-sdo-xsd-SDK-2.1.0.zip & url = http://eclipse.mirrors.tds.net/tools/emf/downloads/drops/2.1.0/R200507070200/emf-sdo-xsd-SDK-2.1.0.zip&mirror_id=52
Download the ve plug-in [optional installation]:
Root @ Ubuntu:/home/Zhong/desktop # wget-C http://download.eclipse.org/tools/ve/downloads/drops/R-1.0.2.2-200506291842/VE-SDK-1.0.2.2.zip
3. decompress the package to the/OPT directory.
[Required operation]
Root @ Ubuntu:/home/Zhong/desktop # tar zxvf eclipse-SDK-3.1-linux-gtk.tar.gz-C/OPT
[Optional]
Root @ Ubuntu:/home/Zhong/desktop # unzip org.eclipse.cdt.sdk-2.1.1-linux.x86.zip-D/OPT
[Optional]
Root @ Ubuntu:/home/Zhong/desktop # unzip NLpack-org.eclipse.cdt.sdk-2.0.x-linux.x86.zip-D/OPT
[Optional]
Root @ Ubuntu:/home/Zhong/desktop # unzip uml2-SDK-1.1.0.zip-D/OPT
[Optional]
Root @ Ubuntu:/home/Zhong/desktop # unzip GEF-ALL-3.1.zip-D/OPT
[Optional]
Root @ Ubuntu:/home/Zhong/desktop # unzip emf-sdo-xsd-SDK-2.1.0.zip-D/OPT
[Optional]
Root @ Ubuntu:/home/Zhong/desktop # unzip VE-SDK-1.0.2.2.zip-D/OPT
4. Directory setting permissions
Root @ Ubuntu:/home/Zhong/desktop # chown-r root: Root/opt/eclipse
5. Create a/usr/bin/eclipse file.
Root @ Ubuntu:/home/Zhong/desktop # Cat>/usr/bin/eclipse <"EOF"
> #! /Bin/sh
> Export illa_five_home = "/usr/lib/Mozilla /"
> Export eclipse_home = "/opt/Eclipse"
> $ Eclipse_home/eclipse $ *
> # End/usr/bin/eclipse
> EOF
6. Set/Eclipse/bin/eclipse as an executable file.
Root @ Ubuntu:/home/Zhong/desktop # chmod + x/usr/bin/eclipse
7. Add menu items
Root @ Ubuntu:/home/Zhong/desktop # Cat>/usr/share/applications/eclipse. Desktop <"EOF"
> [Desktop entry]
> Encoding = UTF-8
> Name = eclipse Platform
> Comment = Eclipse IDE
> Exec = eclipse
> Icon =/opt/Eclipse/icon. XPM
> Terminal = false
> Type = Application
> Categories = gnome; application; development;
> Startupnotify = true
> EOF
8. Exit the root user
Root @ Ubuntu:/home/Zhong/desktop # exit
Zhong @ Ubuntu :~ /Desktop $
9. Application --> programming --> eclipse Platform
Install eclipse
(1) extract the eclipse-SDK-3.3 to a directory, and decompress it to/opt to get the/opt/eclipse directory
To change the eclipse directory to root, run the following command:
Sudo chown-r root: Root/opt/eclipse
Of course, you do not need.
(2) create a STARTUP script eclipse in the/usr/bin directory and execute the following command to create it:
Sudo VI/usr/bin/eclipse
If you are not familiar with the VI command, you can use the simple text editor gedit that comes with Ubuntu to create it with the following command:
Sudo gedit/usr/bin/eclipse
Add the following content to the file:
#! /Bin/sh
Export export illa_five_home = "/usr/lib/Mozilla /"
Export eclipse_home = "/opt/Eclipse"
$ Eclipse_home/eclipse $ *
(3) change the permission of the script to executable and execute the following command:
Sudo chmod + x/usr/bin/eclipse
3. Add the eclipse startup icon to the desktop or GNOME menu.
(1) Add an icon on the desktop or startup panel:
Create a new starter on the desktop (right-click desktop> Create initiator) or panel (right-click Panel> Add to Panel> Custom application launcher, then add the following data:
Name: Eclipse Platform
Command: Eclipse
Icon:/opt/Eclipse/icon. XPM
(2) Add an icon on the applications menu
Use a text editor to create an eclipse. Desktop starter in the/usr/share/applications directory. Run the following command:
Sudo VI/usr/share/applications/eclipse. Desktop
Or
Sudo gedit/usr/share/applications/eclipse. Desktop
Add the following content to the file:
[Desktop entry]
Encoding = UTF-8
Name = eclipse Platform
Comment = Eclipse IDE
Exec = eclipse
Icon =/opt/Eclipse/icon. XPM
Terminal = false
Startupnotify = true
Type = Application
Categories = application; development;
Save the file. Complete the installation process. You can double-click the eclipse icon on the desktop to run eclipse.
A qt plug-in configuration is provided:
Install eclipse QT visual development environment in Ubuntu 8.10
First, download the C/C ++ version of eclipse on the eclipse homepage.
Then, download the QT-eclipse-integration version gcc4.
Start installation. It is best to switch to the root permission.
Decompress the eclipse compressed package to/OPT. The command is as follows:
Tar-xzvf eclipse-cpp-ganymede-SR1-linux-gtk.tar.gz-C/OPT
Go to the eclipse directory:
CD/opt/eclipse
Create a new QT Folder:
Mkdir QT
Return to the directory where the QT plug-in is stored and decompress the plug-in to/opt/Eclipse/Qt:
Tar-xzvf qt-eclipse-integration-linux.x86-1.4.3.tar.gz-C/opt/Eclipse/QT
Go to the eclipse directory again and create the folder links:
CD/opt/eclipse
Mkdir links
Enter the links folder, create the file QT. Link, and write the following content to QT. Link:
Path =/opt/Eclipse/QT
Save it.
Finally, start eclipse to see the QT plug-in.