Click here to Skip to main content
15,029,501 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted
Comments
   
And?..
—SA

hi,
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!
   
v2
Comments
Pouria Polouk 29-Jan-16 2:25am
   
thank you so much
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++

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).
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900