本文共 1476 字,大约阅读时间需要 4 分钟。
ubuntu下载安装Eclipse for c/c++ developers
1、安装eclipse
在终端输入eclipse验证是否安装了eclipse:
root@kwt-virtual-machine:/home/kwt# eclipse程序“eclipse”尚未安装。 您可以使用以下命令安装:apt install eclipse-platform
如果出现如下错误说明没有更新软件源:
root@kwt-virtual-machine:/home/kwt# apt install eclipse-platform正在读取软件包列表... 完成正在分析软件包的依赖关系树正在读取状态信息... 完成E: 无法定位软件包 eclipse-platform
更新软件源:
root@kwt-virtual-machine:/home/kwt# sudo apt-get update
更新完成后安装eclipse_platform:
root@kwt-virtual-machine:/home/kwt# apt install eclipse-platform正在读取软件包列表... 完成正在分析软件包的依赖关系树正在读取状态信息... 完成将会同时安装下列软件: ant ant-optional aspectj binfmt-support ca-certificates-java default-jdk
这时候安装的eclipse应该是默认隐藏了菜单栏的,在/etc/profile最后一行添加export UBUNTU_MENUPROXY=0就可以了,然后保存重启系统:
root@kwt-virtual-machine:/home/kwt# vim /etc/profile
2、配置c/c++环境
输入如下命令配置:
apt-get install build-essential
apt-get install eclipse-cdt
配置完成即可在终端直接输入命令eclipse打开Eclipse(ps:注意是终端,如SSH远程登陆输入命令会提示如下)
root@kwt-virtual-machine:/home/kwt# eclipseOpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0find: `/root/.eclipse': 没有那个文件或目录find: `/root/.eclipse': 没有那个文件或目录W: Cannot inject update-sites, cannot find the correct config.OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0Eclipse:An error has occurred. See the log file/usr/lib/eclipse/configuration/1587176341231.log.root@kwt-virtual-machine:/home/kwt#
3、将Eclipse锁定到启动器
这时候Eclipse需要在终端输入eclipse命令才能打开,可以将Eclipse锁定到启动器,以后就可以直接在Ubuntu桌面直接打开Eclipse
转载地址:http://sqowi.baihongyu.com/