gcc: fatal error: cannot execute ‘cc1plus’: spawn: No such file or directory

created at 03-20-2022 views: 3

solution

need to get the path

$ find . -name *cc1plus*
./lib/gcc/x86_64-pc-cygwin/7.4.0/cc1plus.exe
./lib/gcc/x86_64-w64-mingw32/11/cc1plus.exe
./usr/lib/gcc/x86_64-pc-cygwin/7.4.0/cc1plus.exe
./usr/lib/gcc/x86_64-w64-mingw32/11/cc1plus.exe


user@LAPTOP-R5HSP011 /
$ export PATH=/usr/lib/gcc/x86_64-w64-mingw32/11:$PATH
created at:03-20-2022
edited at: 03-20-2022: