g++: error trying to exec 'cc1plus': execvp: No such file or directory

前端 未结 5 2249
闹比i
闹比i 2020-12-15 03:03

I am using ubuntu 12.04. I\'m trying to \"make\" a project.

I get this error:

g++: error trying to exec \'cc1plus\': execvp: No such file or director         


        
5条回答
  •  醉话见心
    2020-12-15 03:42

    I faced the same issue after upgrading gcc to 4.8
    sudo apt-get install gcc-4.8 (mind the package name)
    Then I manually changed the g++ link to a renamed copy of gcc-4.8

    My fix was a proper g++ installation
    sudo apt-get install g++-4.8

    For clarity you should use g++-4.8 instead of gcc-4.8

提交回复
热议问题