opensue安装eclipse进行python开发

date :20140214

auth:jin

1.install jdk

zypper insgtall java-1_7_0-openjdk 

 

2.环境

linux-gzy1:~ # env |grep JAVA
JAVA_BINDIR=/usr/lib64/jvm/jre/bin
JAVA_HOME=/usr/lib64/jvm/jre
JAVA_ROOT=/usr/lib64/jvm/jre

手动装

用root权限在/usr目录下建立java文件夹,然后将jdk1.7.0_45文件夹及下面的东西全部移动到/usr/java/下。 配置java环境 vi /etc/profile 添加以下内容到文件尾部 JAVA_HOME=/usr/java/jdk1.7.0_45

JRE_HOME=/usr/java/jre1.7.0_45

PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib

export JAVA_HOME JRE_HOME PATH CLASSPATH

 source profile

 

3。eclipse

下载Eclipse Standard 4.3.2

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-standard-kepler-SR1-linux-gtk-x86_64.tar.gz&mirror_id=1183

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR2/eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz&mirror_id=1185

 解压

MyOpenSUSE:/home/jin/Downloads # tar -zxvf eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz -C /usr/local/

参考资料解压到 /usr/lib我解压到 /usr/local/ 不知道加载库有没有影响

软链
ln -s /usr/local/eclipse/eclipse /usr/bin/

图标
vim /usr/share/applications/eclipse.desktop
[Desktop Entry]
X-SuSE-translate=true
Categories=Development;
Encoding=UTF-8
Name=eclipse
Comment=IDE c/c++
TryExec=eclipse
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application

 

在应用最近安装就可以看到了

 

后续安装添加Pydev插件  Pydev- http://pydev.org/updates/

http://pydev.org/nightly/

另外一个地址http://pydev.sf.net/updates

http://pydev.sourceforge.net/updates

http://pydev.org/download.html

http://sourceforge.net/projects/pydev/files/pydev/

 

好像被墙了 本地安装

 

将下载的PyDev解压

PyDev解压后一般包含Plugins和Feature文件夹,将PyDev解压后的文件夹拷贝到Eclipse解压后的目录下即可,完成后再启动Eclipse,可以在Eclipse菜单Help->About Eclipse SDK->Installation Detail看到PyDev组件的安装。

 

unzip PyDev\ 3.4.1.zip

MyOpenSUSE:/home/jin/Downloads # cp -a features/* /usr/local/eclipse/features/
MyOpenSUSE:/home/jin/Downloads # cp -a plugins/* /usr/local/eclipse/plugins/

 

参考

http://www.cnblogs.com/linzhenjie/articles/2639113.html

 

 

 

posted on 2014-02-14 15:21  @Jin  阅读(318)  评论(0编辑  收藏  举报

导航