When I compile C/C++ program with popen in php... I got this error:
popen
php
g++: error trying to exec \'cc1plus\': execvp: No such file or
You may have this issue as well if you have environment variable GCC_ROOT pointing to a wrong location. Probably simplest fix could be (on *nix like system):
unset GCC_ROOT
in more complicated cases you may need to repoint it to proper location