title: gcc error trying to exec 'cc1': execvp: No such file or directory when running with non-root user
body: <p>I see that same question has been asked many times but my problem is different.</p>
  
  <p>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</p>
  
  <blockquote>
    <p>error gcc: error trying to exec 'cc1': execvp: No such file or
    directory</p>
  </blockquote>
  
  <p>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.</p>
  
  <p>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.</p>