我用的环境是centos8.5注意:安装软件前一定要先关闭防火墙和SELINUXsystemctldisablefirewalldsystemctlstopfirewalldsed-i's/^SELINUX=.*$/SELINUX=disabled/'/etc/selinux/configsetenforce01.请检查需要安装的插件yum-yinstallgccyum-yinstallgcc-c++yum-yinstallgcc-gfortran2.这两个插件请根据系统选择下载Redhat-lsb-coreDownload(RPM)(pkgs.org)dnfinstallredhat-lsb