g++: error trying to exec 'cc1plus': execvp: No such file or directory

Posted on Jan 10, 2023

Question

I am using ubuntu 12.04. I'm trying to "make" a project.

I get this error:

g++: error trying to exec 'cc1plus': execvp: No such file or directory

I have g++ installed.

Answer

I tried the command @MonoThreaded gave but it failed. I tried below and it works.

sudo apt-get install g++

Please don't include any version after the g++.