MDLog:/sysadmin

The Journal Of A Linux Sysadmin

Gcc: Error Trying to Exec 'Cc1plus': Execvp: No Such File or Directory

| Comments

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

1
2
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:

1
aptitude install g++

and this solved my issue and the compilation finished successfully.

Comments