I am trying to compile a simple "hello world" C++ program on RHEL 7.9 using GNU Toolchain. After running "gcc -o a.out hello.cpp" I get the error "gcc: error trying to exec 'cc1plus': execvp: Permission denied". 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.
#include <iostream> using namespace std; int main(int argc, char *argv[]) { cout << "Hello World!" << endl; return 0; }