比较来自世界各地的卖家的域名和 IT 服务价格

如何自动安装插件 Eclipse 使用命令行?

我需要自动安装 Eclipse Classic 并加两个 "plugins" :

CDT /不确定这可以调用 "plugin"/

PyDev

安装 Eclipse Classic /刚下载了/ :


sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /usr/local/


那么如何安装 CDT 和 PyDev 作为系统插件 /不习惯/?
已邀请:

龙天

赞同来自:

我可以找到这两份文件,有助于 :

http://help.eclipse.org/indigo ... e.htm
http://help.eclipse.org/helios ... .html
安装刚下载了 Eclipse Classic :


sudo tar -xvzf eclipse-SDK-3.7-linux-gtk.tar.gz -C /usr/local/


安装所需的功能 CDT /使用该工具找到的链接 Eclipse "Help>Install new software"/

C/C++ 开发工具 /org.eclipse.cdt.feature.group /

C/C++ 开发工具 SDK / org.eclipse.cdt.sdk.feature.group /

C/C++ 开发平台 /org.eclipse.cdt.platform.feature.group /

C/C++ 改善记忆介绍 / org.eclipse.cdt.debug.ui.memory.feature.group /

Eclipse 调试器 C/C++ / org.eclipse.cdt.debug.edc.feature.group /

MISCELLANEA C/C++ 公用事业 / org.eclipse.cdt.util.feature.group /

跑 :


sudo /usr/local/eclipse/eclipse -nosplash \
-application org.eclipse.equinox.p2.director \
-repository [url=http://download.eclipse.org/releases/indigo/]http://download.eclipse.org/releases/indigo/[/url],[url=http://download.eclipse.org/tools/cdt/releases/helios/]http://download.eclipse.org/to ... lios/[/url] \
-destination /usr/local/eclipse \
-installIU org.eclipse.cdt.feature.group \
-installIU org.eclipse.cdt.sdk.feature.group \
-installIU org.eclipse.cdt.platform.feature.group \
-installIU org.eclipse.cdt.debug.ui.memory.feature.group \
-installIU org.eclipse.cdt.debug.edc.feature.group \
-installIU org.eclipse.cdt.util.feature.group


安装 PyDev, 我们首先需要插入自动定时证书。 /可以在这里找到哪个:
http://pydev.org/pydev_certificate.cer
/


#!/usr/bin/env python
# add PyDev's certificate to Java's key and certificate database
# Certificate file can be downloaded here : [url=http://pydev.org/pydev_certificate.cer]http://pydev.org/pydev_certificate.cer[/url]
import os, sys
import pexpect

print "Adding pydev_certificate.cer to /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts"

cwd = os.path.abspath /os.path.dirname/sys.argv[0]//
child = pexpect.spawn/"keytool -import -file ./pydev_certificate.cer -keystore /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts"/
child.expect/"Enter keystore password:"/
child.sendline/"changeit"/
if child.expect/["Trust this certificate?", "already exists"]/ == 0:
child.sendline/"yes"/
try:
child.interact//
except OSError:
pass

print "done"


所以跑步 :


sudo ./add_pydev_certificate.py


期望的功能 PyDev 是 :

PyDev 为了 Eclipse / org.python.pydev.feature.feature.group /

跑 :


sudo /usr/local/eclipse/eclipse -nosplash \
-application org.eclipse.equinox.p2.director \
-repository [url=http://pydev.org/updates/]http://pydev.org/updates/[/url] \
-destination /usr/local/eclipse \
-installIU org.python.pydev.feature.feature.group

卫东

赞同来自:

这是一个迟到的答案,但您可以检查函数目录的副本和存储库的插件到名为文件夹 dropins, 位于主文件夹下面 eclipse. 它在Helios和后来工作。 有关更多信息,您可以找到
https://wiki.eclipse.org/Equin ... arted
.

君笑尘

赞同来自:

你可以加 CDT 和 PyDev 手动开始 GUI, 您当前的安装 Eclipse.
然后将它们全部包装在一起 & 解压缩目标系统 /系统/.

要回复问题请先登录注册