Install devtoolset and devtoolset
During O & M, various open-source components are often compiled and installed. For CentOS 6 users, most of the time gcc is used in version 4.4.7, in most cases, compiling something is enough, but some software still has requirements on the gcc version. For example, rethinkdb requires a version later than 4.8.2. Why? Because the C ++ 11 feature is used, the default gcc version in CentOS6 is not supported. There are two methods to solve this problem:
1. manually compile gcc> 4.8
2. Install devtoolset
The first method is relatively time-consuming and suitable for students who really want to work hard. The second method is lazy and can be used to quickly install a later version of gcc.
The following describes how to install devtoolset.
Devtoolset currently has four versions: devtoolset-1.1 devtoolset-2 devtoolset-3 devtoolset-4, the above versions correspond to gcc versions 4.7, 4.8, 4.9, 5.2
Installation steps:
1.
Install centos-release-scl
> Yum install centos-release-sclCentos-release-scl-rh
In fact, the CentOS extra warehouse has two packagesCentos-release-scl
Another one isCentos-release-scl-rh
The difference between the two is that one is all the packaging rpm of the SoftwareCollection team, and the other only contains the official RedHat Package content. I personally recommend using the latter.
2. Download the repo Library
3. Download and install yum