gcc error trying to exec ‘cc1’: execvp: No such file or directory

I see that same question has been asked many times but my problem is different.

I installed gcc on ubuntu 14.04 and and it works fine with root user.
When I attempt to compile using non-root user it throws

error gcc: error trying to exec ‘cc1’: execvp: No such file or
directory

Once I compile the file with root user, non-root user is able to execute the file without any error but it is not able to compile the file.

I suspect there is a problem with file permissions and I have checked permissions for cc1 and non root user had execute permission on the file.


Source: ubuntu

Leave a Reply