I'm sending an HTTP request to my web server and its task is to compile a file exploiting the system() function. I'm trying to compile this code:
system("gcc -o testFile testFile.c") However, I receive this error:
error trying to exec 'cc1': execvp: No such file or directory I'm not that expert in both linux and C. Anybody can help to fix this issue?
I tried the solution available and it did not work
$PATH, or maybe something else. Normally though, if you can findgccto run it, then it can find its backend tools; they are in a specified location. If you can't compile form the terminal window (same or similar error), it is time to reinstall.