https://blog.csdn.net/h378588270/article/details/7729268centos: yum -y update gcc yum -y install gcc+ gcc-c++ ubuntu: apt-get update gcc apt-get install g++