Skip to content

Instantly share code, notes, and snippets.

@dstrebkov
dstrebkov / gcc-install-from-sources.sh
Last active May 9, 2023 12:50
GCC 12 or GCC 13 install from sources
#!/bin/bash
########################################################################################
# GCC 12 and GCC 13 installer:
# - checks out GCC sources from official GCC Git repo;
# - builds them and installs GCC binaries to $HOME/opt/gcc-x.y.z location
#
# Installed languages are: C/C++, Fortran and Go
#
# Prerequisites: Flex version 2.5.4 (or later) and tools & packages listed in