ubuntu13 安装 pycharm

1.pycharm需要java,baidu google一番说要安装oracle-java8-installer

2.ubuntu13 的源不能更新,找到旧源更新也没有所谓的oracle-java8-installer

3.打开http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html,下载jdk-8u45-linux-i586.tar.gz

4.解压缩得到jdk1.8.0_45,在/usr下建个目录java,拷贝jdk1.8.0_45到/usr/java里

5.将java添加到系统环境中

6. sudo gedit /etc/environment ,改成下面几行,没有则添加

JAVA_HOME=/usr/java/jdk1.6.0_25
CLASSPATH=.:${JAVA_HOME}/lib
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:${JAVA_HOME}/bin"

7.source /etc/environment    (source之前不用加sudo

8.验证安装是否正确

java -version


9. cd pycharm-4.5.1/bin

./pycharm.sh

10.ok (自行百度注册码)


-----------------------------------------------------------------------------------------------------------------------------------------------------------

11.创建快捷方式,Ubuntu的快捷方式都放在/usr/share/applications,首先在该目录下创建一个Pycharm.desktop

$ sudo gedit /usr/share/applications/Pycharm.desktop


12.然后输入以下内容,注意Exec和Icon需要找到正确的路径

[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm4.5.1
Comment=Pycharm4.5.1:The Python IDE
Exec="/home/jli/pycharm-4.5.1/bin/pycharm.sh" %f
Icon=/home/jli/pycharm-4.5.1/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;

你可能感兴趣的:(ubuntu13 安装 pycharm)