g++: command not found的解决

 G++没有装或却没有更新

 

以下方法都可以试试:

centos:

yum -y update gcc

yum -y install gcc+ gcc-c++

 

ubuntu:

apt-get update gcc

apt-get install g++