有些软件包编译需要较高版本gcc编译器,可通过以下方式安装,gcc 8安装方式也类似。 安装gcc 7版本编译器 安装 yum install devtoolset-7 -y使能 source /opt/rh/devtoolset-7/enable (仅在本终端有效)