How Do You Compile a C++ Program When You Get “Gcc: Error Trying to Exec ‘cc1plus’: Execvp: No Such File or Directory”?

Problem scenario:  When trying to compile a C++ program (e.g., $ gcc hello.cpp), you receive this error:
"gcc: error trying to exec 'cc1plus': execvp: No such file or directory"

What do you do?

Install gcc-c++.  For a RedHat distribution of Linux, use this command:

yum -y install gcc-c++

Leave a comment

Your email address will not be published. Required fields are marked *