GNU/Linux Kali Installing GCC 12.1 from Source – QuickStart Guide
Hi! This tutorial will guide you step-by-step on How to Install GNU Compiler Collection 12.1.x from Source in Kali GNU/Linux Desktop.
And the GCC 12.1 for Kali is a Compilers Collection currently supporting C, C++, Objective-C, Objective-C++, Fortran, Ada, D, Go, and BRIG (HSAIL) Languages.
Finally, GCC 12.1 includes several New Features, Changes, and Fixes that you can consult on the GNU GCC Documentation.
1. Launching Terminal
Open a Shell Session
(Press “Enter” to Execute Commands)sudo apt update
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. Downloading GCC 12.1
Download GCC 12.1 Source Code for GNU/Linux
Navigate to the 12.1.x Folder to Grab the Package.4. Extracting GCC 12.1
Then to Extract GCC 12.1 Archive
Or from Command Line:
If it does Not Open automatically then Double-Click/Right-Click to Open with Archive Manager:tar xvzf ~/Downloads/gcc-12.*.tar.gz
But if you are in Trouble to Find the Location on Terminal then See: How to Access Downloads Folder from Browser.
Finally, if you are in Trouble to Find Out it on Terminal See: How to Access Downloads Folder from Browser.
Contents