在kali 2.0上安装g ++ 4.9 [英] installing g++ 4.9 on kali 2.0

查看:127
本文介绍了在kali 2.0上安装g ++ 4.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



如何在kali linux 2.0上安装g ++编译器?

我之前运行过以下命令:



apt-get update

apt-get upgrade

apt-get install build-essential



问候。

Hello all.

How I can install g++ compiler on kali linux 2.0?
I have run below commands before:

apt-get update
apt-get upgrade
apt-get install build-essential

Regards.

推荐答案



i还没有在'kali'发行版上工作但是我希望从终端进行发布时,这个过程在发行版中保持不变:

1)。 sudo apt-get update

2)。 sudo apt-get upgrade

2)。 sudo apt-get install g ++(安装最新的软件包)



然后你可以用命令检查编译器软件包列表:

dpkg --list | grep编译器



知道系统使用的当前g ++版本:

g ++ --version



这些都是非常基本的东西。任何好的在线教程都会解释这些东西(谷歌),所以请关注任何一个。



希望这有帮助!

i have not worked on 'kali' distro but i hope the process remains the same across distros when doing it from terminal:
1). sudo apt-get update
2). sudo apt-get upgrade
2). sudo apt-get install g++ (installs the most updated package)

then you can check the list of compiler packages with command:
dpkg --list | grep compiler

know the current g++ version used by the system:
g++ --version

these are very basic things. Any good online tutorial will explain these things(Google it), so follow any one .

hope this helps!


如果apt正在工作,这就是你要在Kali Linux上使用的东西(我不推荐给Linux初学者,因为Kali Linux是安全专家试用的非常先进的工具!),然后只需执行以下命令:

If apt is working and that is what you are going to use on Kali Linux (which I do not recommend to Linux beginners, as Kali Linux is a very advanced tool for security experts to try out!), then just execute the following command:
sudo apt-get install g++



然而,因为那个命令(你的那个)正在使用)也是可能的(因为Kali Linux是一个Debian发行版;像Ubuntu!),你应该以超级用户身份执行它!目前,您不是以超级用户身份执行该操作,而在Linux环境中,所有安装或卸载以及类似命令都需要具有超级用户身份验证。前置 sudo 命令以执行具有超级用户权限的命令),或使用根终端(最初会询问为你的密码)。


However, since that command (the one you are using) is also possible (because Kali Linux is a Debian distro; like Ubuntu!), you should execute that as super-user! Currently you are not executing that as a superuser, whereas in Linux environment all of the install or uninstall and similar commands require to have superuser authentication. Either prepend sudo (command to execute the commands with super-user privileges), or use the root terminal (which would, at the beginning, ask for your password).


这篇关于在kali 2.0上安装g ++ 4.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆