Step-by-step – GCC 12.2 CentOS 9 Installation

October 5, 2022 | By the+gnu+linux+evangelist.

GNU/Linux CentOS 9 Installing GCC 12.2 from Source – QuickStart Guide

Hi! The Tutorial shows you Step-by-step How to Install GNU Compiler Collection 12.2.x from Source in CentOS Stream 9.x 64-bit GNU/Linux.

And the GCC 12.2 for CentOS 9 is a Compilers Collection currently supporting C, C++, Objective-C, Objective-C++, Fortran, Ada, D, Go, and BRIG (HSAIL) Languages.

Finally, GCC 12.2 includes several New Features, Changes, and Fixes that you can consult on the GNU GCC Documentation.

So this Guide is Valid also for All the others Red Hat Linux Based Distros like:

  • Red Hat Enterprise Linux
  • Oracle Enterprise Linux
  • Rocky Linux
  • AlmaLinux
Step-by-step GCC 12.2 CentOS 9 Installation Guide - Featured
  1. 1. Launching Terminal

    Open a Shell Session
    (Press “Enter” to Execute Commands)

    Step-by-step GCC 12.2 CentOS 9 Installation Guide - Open Terminal
    In case first see: Terminal QuickStart Guide.
  2. 2. Querying System GCC

    First, find out what the actual System GCC
    Play:

    which gcc
    Take Note of the PATH to use after installation for switching the System GCC.
    Possibly to Check the current GCC version issue:
    gcc -v
  3. 3. Downloading GCC 12.2

    Download GCC 12.2 Source Code for GNU/Linux

    Navigate to the 12.2.x Folder to Grab the Package.
  4. 4. Extracting GCC 12.2

    Then to Extract GCC 12.2 Archive
    If it does Not Open automatically then Double-Click/Right-Click to Open with Archive Manager:

    Step-by-step GCC 12.2 CentOS 9 Installation Guide - Extracting Or from Command Line:
    tar xvzf ~/Downloads/gcc-12.*.tar.gz
    (But if downloaded with Firefox it may be instead into /tmp/mozilla*)
    Finally, if you are in Trouble to Find Out it on Terminal See: How to Access Downloads Folder from Browser.

Contents


QuickChic Theme • Powered by WordPress