Tag Archives: gcc: error trying to exec ‘cc1’: execvp:

GCC: error trying to exec ‘cc1’: execvp: [How to Solve]

About GCC: error trying to exec ‘CC1’: execvp: there is no error in this file or directory

This problem occurred when compiling X11 today

What is said on the Internet is also cloudy

Later I found that I had modified the path

Just change it to a far away path.

Input: where is GCC

You can find that there is a GCC in/usr/bin/GCC

So I set the path in the past, OK

Export path =/usr/bin: $path (reset according to your own location)