How do you fix a gcc compile 127 error? sudo apt-get install g++ doesn't work

You need to install g++ or some similarly named package to compile c++ code.


Install g++. This can be done e.g. by

sudo apt-get install g++ 

Not sure whether you really need a particular version. In most cases system default should be ok for it.