博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu下载安装Eclipse for c/c++ developers
阅读量:3944 次
发布时间:2019-05-24

本文共 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/

你可能感兴趣的文章
Running Your App (android)
查看>>
Starting Another Activity
查看>>
Starting an Activity
查看>>
Stopping and Restarting an Activity
查看>>
Using the Support Library
查看>>
Creating a Fragment
查看>>
Building a Flexible UI
查看>>
Communicating with Other Fragments
查看>>
Saving Key-Value Sets
查看>>
Saving Files
查看>>
Saving Data in SQL Databases
查看>>
Sending the User to Another App
查看>>
Getting a Result from an Activity
查看>>
Allowing Other Apps to Start Your Activity
查看>>
Using the Location Manager
查看>>
Obtaining the Current Location
查看>>
Displaying the Location Address
查看>>
Connecting to the Network
查看>>
Managing Network Usage
查看>>
Parsing XML Data
查看>>