“Linux中安装eclipse”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
docker>Evan
 
(导入1个版本)
 

2019年10月14日 (一) 13:48的最新版本

说在前面

作为一个c fans 总是喜欢eclipse !在此 采用了下载二进制包的方法 适合各种版本 不管你是debain kali or centos gentoo

下载

可以直接apt

 sudo apt install eclipse-cdt
https://packages.debian.org/sid/devel/eclipse-cdt

http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/neon/1a/eclipse-cpp-neon-1a-linux-gtk-x86_64.tar.gz

注意了 是本本才是 ,PC没有SSD 哈哈
考虑到ssd分区启动比较快,现在是
root@evankali:/opt/eclipse# pwd
/opt/eclipse

cat .bashrc
alias eclipse=/opt/eclipse/eclipse


再做启动器比较爽

[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse IDE
GenericName=Integrated Development Environment
GenericName[zh_CN]=集成开发环境
Comment=Develop software in an integrated development environment
Comment[zh_CN]=在集成开发环境中开发软件
Encoding=UTF-8
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=GNOME;GTK;Development;IDE;
StartupNotify=true

语言包下载

打开
http://www.eclipse.org/babel/downloads.php

看到
Babel Language Pack Zips
Neon | Mars | Luna

点击进去 找到我们要的

http://download.eclipse.org/technology/babel/babel_language_packs/R0.14.0/neon/neon.php

Language: Chinese (Simplified)

wget -c http://mirrors.neusoft.edu.cn/eclipse/technology/babel/babel_language_packs/R0.14.0/neon/BabelLanguagePack-eclipse-zh_4.6.0.v20160813060001.zip

把你下载的zip文件解压,得到一个名为eclipse的文件夹,它里面包含两个文件夹:features和plugins,复制features和plugins到你的eclipse程序目录,覆盖原程序文件即可:

cp -a features/ ~/software/eclipse/
cp -a plugins/ ~/software/eclipse/

wget -c http://mirrors.tuna.tsinghua.edu.cn/eclipse//technology/epp/downloads/release/kepler/SR2/eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz
tar xvf eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz
cd eclipse; ./eclipse

evan@latop:~$ vim .bashrc
alias halt='sudo poweroff'
export LANG=zh_CN.utf8
alias vi=vim
alias ll='ls -l'
alias ifconfig='/sbin/ifconfig'
##加上这句 这个有时不好用
alias eclipse='/home/evan/program/eclipse/eclipse'

#全局启动eclipse 其它软件也是相似 因为
#evan@evankali:~$ echo $PATH
#/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

sudo ln -s /home/evan/program/eclipse/eclipse /usr/bin/eclipse