Instalando o Eclipse-cdt instala o jdt e vários outros também

0

Eu queria instalar o eclipse-cdt para desenvolvimento em c ++. Mas parece que não pode ser instalado sozinho no Ubuntu. Por que existem pacotes separados se não puderem ser instalados sozinhos?

[balakrishnan@mylap ~]$ sudo apt-get install eclipse-cdt Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed:
ant ant-optional aspectj binfmt-support ca-certificates-java default-jdk default-jre default-jre-headless eclipse-cdt-jni eclipse-emf eclipse-jdt *eclipse-pde* eclipse-platform eclipse-platform-data eclipse-rcp eclipse-rse fastjar icedtea-7-jre-jamvm jarwrapper java-common junit junit4 libapache-pom-java libasm3-java libaspectj-java libatk-wrapper-java libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common
libbonoboui2-0 libbonoboui2-common libcommons-beanutils-java libcommons-cli-java libcommons-codec-java libcommons-collections3-java libcommons-compress-java libcommons-dbcp-java libcommons-digester-java libcommons-httpclient-java libcommons-lang-java
libcommons-logging-java libcommons-parent-java libcommons-pool-java libdb-java libdb-je-java libdb5.1-java libdb5.1-java-jni
libeasymock-java libecj-java libequinox-osgi-java libfelix-bundlerepository-java libfelix-gogo-command-java libfelix-gogo-runtime-java libfelix-gogo-shell-java libfelix-osgi-obr-java libfelix-shell-java libfelix-utils-java libgconf2-4 libgeronimo-jpa-2.0-spec-java
libgeronimo-jta-1.1-spec-java libgeronimo-osgi-support-java libgif4 libgnome2-0 libgnome2-bin libgnome2-common libgnomecanvas2-0
libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libhamcrest-java libice-dev libicu4j-4.4-java
libicu4j-java libidl-common libidl0 libjetty8-java libjline-java libjsch-java libjtidy-java libkxml2-java liblucene2-java liborbit2
libosgi-compendium-java libosgi-core-java libosgi-foundation-ee-java libpthread-stubs0 libpthread-stubs0-dev libregexp-java
libservlet2.5-java libservlet3.0-java libsm-dev libswt-cairo-gtk-3-jni libswt-glx-gtk-3-jni libswt-gnome-gtk-3-jni libswt-gtk-3-java
libswt-gtk-3-jni libswt-webkit-gtk-3-jni libtomcat7-java libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxerces2-java
libxml-commons-external-java libxml-commons-resolver1.1-java libxt-dev libxz-java openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib sat4j ttf-dejavu-extra tzdata-java x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev Suggested packages: ant-gcj ant-doc libbsf-java liboro-java libxalan2-java libjaxp1.3-java liblog4j1.2-java jython antlr libbcel-java libjdepend-java libgnumail-java libcommons-net-java javacc ant-optional-gcj eclipse equivs junit-doc libbonobo2-bin libcommons-beanutils-java-doc libcommons-collections3-java-doc libcommons-dbcp-java-doc libcommons-digester-java-doc libcommons-httpclient-java-doc libavalon-framework-java libcommons-logging-java-doc libexcalibur-logkit-java libdb5.1-java-gcj libeasymock-java-doc ecj libecj-java-gcj
libfelix-bundlerepository-java-doc libfelix-gogo-command-java-doc libfelix-gogo-runtime-java-doc libfelix-gogo-shell-java-doc
libfelix-osgi-obr-java-doc libfelix-shell-java-doc libfelix-utils-java-doc libgeronimo-jpa-2.0-spec-java-doc libgeronimo-jta-java-doc libgeronimo-osgi-support-java-doc desktop-base libgnomevfs2-bin libgnomevfs2-extra gamin fam gnome-mime-data libice-doc jetty8 libjetty8-java-doc libjline-java-doc libjtidy-java-doc libosgi-compendium-java-doc libosgi-core-java-doc libosgi-foundation-ee-java-doc libsm-doc libswt-gtk-3-java-gcj tomcat7 libxcb-doc libxerces2-java-doc libxerces2-java-gcj libxml-commons-resolver1.1-java-doc libxt-doc
openjdk-7-demo openjdk-7-source visualvm icedtea-7-plugin sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts The following NEW packages will be installed: ant ant-optional aspectj binfmt-support ca-certificates-java default-jdk default-jre default-jre-headless eclipse-cdt eclipse-cdt-jni eclipse-emf eclipse-jdt eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp eclipse-rse fastjar icedtea-7-jre-jamvm jarwrapper
java-common junit junit4 libapache-pom-java libasm3-java libaspectj-java libatk-wrapper-java libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libcommons-beanutils-java libcommons-cli-java libcommons-codec-java
libcommons-collections3-java libcommons-compress-java libcommons-dbcp-java libcommons-digester-java libcommons-httpclient-java libcommons-lang-java libcommons-logging-java libcommons-parent-java libcommons-pool-java libdb-java libdb-je-java libdb5.1-java libdb5.1-java-jni libeasymock-java libecj-java libequinox-osgi-java libfelix-bundlerepository-java libfelix-gogo-command-java
libfelix-gogo-runtime-java libfelix-gogo-shell-java libfelix-osgi-obr-java libfelix-shell-java libfelix-utils-java libgconf2-4 libgeronimo-jpa-2.0-spec-java libgeronimo-jta-1.1-spec-java libgeronimo-osgi-support-java libgif4 libgnome2-0 libgnome2-bin libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libhamcrest-java libice-dev libicu4j-4.4-java libicu4j-java libidl-common libidl0 libjetty8-java libjline-java libjsch-java libjtidy-java libkxml2-java liblucene2-java liborbit2 libosgi-compendium-java libosgi-core-java libosgi-foundation-ee-java libpthread-stubs0 libpthread-stubs0-dev libregexp-java
libservlet2.5-java libservlet3.0-java libsm-dev libswt-cairo-gtk-3-jni libswt-glx-gtk-3-jni libswt-gnome-gtk-3-jni libswt-gtk-3-java
libswt-gtk-3-jni libswt-webkit-gtk-3-jni libtomcat7-java libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxerces2-java
libxml-commons-external-java libxml-commons-resolver1.1-java libxt-dev libxz-java openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib sat4j ttf-dejavu-extra tzdata-java x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev 0 upgraded, 123 newly installed, 0 to remove and 0 not upgraded. Need to get 311 MB of archives. After this operation, 392 MB of additional disk space will be used. Do you want to continue [Y/n]?

    
por balki 21.10.2012 / 22:32

1 resposta

0

Eu recomendaria a instalação do eclipse no eclipse.org. Acesse o link e faça o download do pacote eclipse de sua preferência. Em seguida, acesse o link e faça o download da versão java apropriada para o seu sistema operacional ("Linux" para i386 "Linux x64 "para amd64). Extraia ambos os arquivos para uma pasta (eu geralmente crio ~ / bin). Você deve pegar duas pastas: eclipse e jre1.7.0_09.

Em seguida, edite o arquivo eclipse / eclipse.ini, adicione:

-vm
../jre1.7.0_09/bin/java

abaixo

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

Isso fará o eclipse sempre usar o java do Oracles. O Eclipse só é testado para ser executado no java do oracle.

Usando este método você pode fazer muitas instalações de eclipse com apenas ferramentas necessárias em cada uma delas.

    
por Max Kutsevol 22.10.2012 / 00:03