Upgrade GCC compilers under Redhat

Source: Internet
Author: User

In a network environment, the use of the GCC source code to compile the way to upgrade the GCC version, so you need to have a GCC compiler.

To get the gcc-4.9.2 package:

wget http://gcc.skazkaforyou.com/releases/gcc-4.9.2/gcc-4.9.2.tar.gz

Unzip:

TAR-ZXVF gcc-4.9.2.tar.gz

CD gcc-4.9.2

execution: ./contrib/download_prerequisites (This magical script file will help us to download, configure, and install dependent libraries, saving us a lot of time and effort.) )

Create the output directory and go to the directory:

mkdir Gcc-4.9.2-build

CD Gcc-4.9.2-build

perform: .. /configure--disable-multilib--enable-languages=c,c++

Compiling:make

Install:make install

authentication:gcc-v; or g++-V

Pro-Test is possible! Ok!

Upgrade GCC compilers under Redhat

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.