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

While I was installing some software on a client machine I got the following error:

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

Even though this doesn’t matter so much (as it can happen in other cases also) the software that I was trying to install was the perl module Encode::Detect.

If you have a problem like this one (even if you are trying to compile a different software) you might want to doublecheck and see if you have g++ installed on the system. In my case a simple since the system was running Debian all I had to do was:

aptitude install g++

and this solved my issue and the compilation finished successfully.

comments powered by Disqus