Red Hat/CentOS 系統執行安裝腳本提示 this program may be freely redistributed under the terms of the GNU GPL,實際缺少編譯工具鏈。
cd /etc/yum.repos.d/
mkdir backup && mv *.repo backup/
wget -O CentOS-Base.repo https://mirrors.163.com/.help/CentOS7-Base-163.repo
# 或阿里雲、搜狐鏡像
yum clean all && yum makecacheyum install -y gcc gcc-c++ makegcc --version
g++ --versiongcc/g++ 才是無法編譯的原因。kernel-headers、glibc-devel,yum groupinstall "Development Tools" 一次解決。