title: Error when trying to compile with gcc on Red Hat 7.9 "gcc: error trying to exec 'cc1plus': execvp: Permission denied"
body: <p>I am trying to compile a simple &quot;hello world&quot; C++ program on RHEL 7.9 using GNU Toolchain. After running &quot;gcc -o a.out hello.cpp&quot; I get the error &quot;gcc: error trying to exec 'cc1plus': execvp: Permission denied&quot;.  Here is the program below.  I have installed gcc-7.2.0 and I have added its executable location to my PATH variable.  Can anyone help?  Thanks.</p>
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main(int argc, char *argv[]) {
    cout &lt;&lt; &quot;Hello World!&quot; &lt;&lt; endl;
    return 0;
  }
  </code></pre>