deepin 15 上如何安装g++
Tofloor
poster avatar
水之无根
deepin
2016-01-05 07:01
Author
如题

在 deepin 15 上如何安装 g++,要安装哪个包?

如下两个命令都无法工作。
sudo apt-get install build-essential
sudo apt-get install g++

Reply Favorite View the author
All Replies
avatar
199******35
deepin
2016-01-05 07:19
#1
我也是嫌安装麻烦,装回linux mint了,至少有提示如何安装
Reply View the author
avatar
4***8@qq.com
deepin
2016-01-05 07:20
#2
这就是安装的命令啊,怎么无法工作,无法安装?还是无法编译程序?
Reply View the author
avatar
199******35
deepin
2016-01-05 07:31
#3
以前终端输入某个程序,比如adb,没安装就会给出提示:sudo apt-get install xxxx,然后比如楼主安装g++,只需要终端输入g++,然后终端就会提示,如果没有安装,就会提示sudo apt-get install g++xxx xxx为版本号
Reply View the author
avatar
xliang9550
deepin
2016-01-05 08:45
#4
之前遇到主源上的g++挂了的问题,换一个镜像源就能装了。
Reply View the author
avatar
andyscream
deepin
2016-01-05 09:22
#5
本帖最后由 andyscream 于 2016-1-5 01:26 编辑

给你出个歪点子,就是装其它软件间接安装好依赖环境,比如,下载cocos2dx引擎包(大概380M左右),解压后,在build文件夹下面有个install-deps-linux.sh的脚本,在终端运行它,自动配置好cmake,gcc,g++等开发环境,因为我是设计游戏的,所以知道,而且运行这个脚本只安装了这些依赖,引擎相关的东西没有安装,你放心。
Reply View the author
avatar
yutent
deepin
2016-01-05 09:45
#6
It has been deleted!
avatar
水之无根
deepin
2016-01-05 17:17
#7
我遇到的情况是:

apt-cache search g++ build-essential,提示没有这安装包
Reply View the author
avatar
水之无根
deepin
2016-01-05 17:20
#8
@yutent

你使用的是哪个命令执行的安装操作?
Reply View the author
avatar
SnDream
deepin
2016-01-05 17:35
#9
sudo aptitude update一下先吧?
Reply View the author
avatar
水之无根
deepin
2016-01-05 17:35
#10
补充一下,

apt-cache search g++ 输出太多的行,但是看不出这些包与g++有任何关系。

apt-cache search g++ | grep g++ 之后,没有任何输出
Reply View the author
avatar
水之无根
deepin
2016-01-05 17:36
#11
哪个设置出问题了?

刚安装的deepin 15,没有做过任何设置。

需要更改一下源?
Reply View the author
avatar
yutent
deepin
2016-01-06 09:49
#12
It has been deleted!
avatar
水之无根
deepin
2016-01-06 20:01
#13
听从 https://bbs.deepin.org/user/29734 建议,执行了一次

sudo apt-get update
sudo apt-get upgrade

然后,就可以
sudo apt-get install g++

真得很神奇。以前用ubuntu没有遇到这么神奇的事情
Reply View the author
avatar
153******45
deepin
2016-01-07 06:09
#14
lang@lang-pc:~$ sudo apt-get install g++
[sudo] lang 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
g++ is already the newest version (4:5.3.1-1).
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
lang@lang-pc:~$
Reply View the author
avatar
水之无根
deepin
2016-01-07 06:14
#15
多谢 a996535783
Reply View the author
avatar
waitshare
deepin
2016-01-13 09:23
#16
https://bbs.deepin.org/post/35457
给你出个歪点子,就是装其它软件间接安装好依赖环境,比如,下载cocos2dx引擎包(大概380M左右),解压后,在 ...

这个好,值得分享
Reply View the author
avatar
weihongchang4
deepin
2016-01-13 16:58
#17
chrome浏览器里面 不就可以了?
Reply View the author
avatar
hummerstudio
deepin
2017-04-21 02:52
#18
默认没有g++这个包,我也吓了一跳。
Reply View the author
avatar
realfan
deepin
2017-05-09 21:47
#19
建议LD默认带上g++
Reply View the author