Install devtoolset and devtoolset

Source: Internet
Author: User

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-sclAnother one isCentos-release-scl-rhThe 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.