I installed Ubuntu 20.04 and I installed g++
using
sudo apt install g++
sudo apt install build-essential
but when I want to check the version using this command
g++ --version
it showed me and also for gcc same the situation
Command 'g++' not found, but can be installed with:
sudo apt install g++
Is there any way to check whether the g++ installed or not?
sudo apt update
and thensudo apt install g++
again. Please add any error messages to the question by editing it. – N0rbert Jul 16 '20 at 14:57sudo apt install --reinstall gcc g++
. Retry your actions. – Kulfy Jul 16 '20 at 15:32