Include instructions for CentOS bootstrapping (#4892)

Currently only includes Ubuntu or apt oriented system. CentOS provides similarly working compilers through devtoolsets.
This commit is contained in:
Andrew Sayman 2018-12-11 02:30:37 -05:00 committed by Robert Schumacher
parent 5ff5ab7ae2
commit 3fb47a376f

View File

@ -181,9 +181,14 @@ selectCXX()
gccversion="$(extractStringBetweenDelimiters "$gccversion" "gcc version " ".")"
if [ "$gccversion" -lt "6" ]; then
echo "CXX ($CXX) is too old; please install a newer compiler such as g++-7."
echo "On Ubuntu try the following:
echo "sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y"
echo "sudo apt-get update -y"
echo "sudo apt-get install g++-7 -y"
echo "On CentOS try the following:"
echo "sudo yum install centos-release-scl"
echo "sudo yum install devtoolset-7"
echo "scl enable devtoolset-7 bash"
return 1
fi