While I was installing some software on a client machine I got the following error:
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:
and this solved my issue and the compilation finished successfully.