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

前端 未结 5 2244
闹比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:54

    I have g++ and gcc installed.

    sudo find / -name "cc1plus"
    

    Gave me something like /usr/lib/gcc/x86_64-linux-gnu//cc1plus

    So I added it to the $PATH

    export PATH="/usr/lib/gcc/x86_64-linux-gnu/:$PATH"
    

提交回复
热议问题