yum install centos-release-scl-rh
yum install devtoolset-3-gcc devtoolset-3-gcc-c++
update-alternatives --install /usr/bin/gcc-4.9 gcc-4.9 /opt/rh/devtoolset-3/root/usr/bin/gcc 10
update-alternatives --install /usr/bin/g++-4.9 g++-4.9 /opt/rh/devtoolset-3/root/usr/bin/g++ 10
Answer from Lars Bilke on Stack Overflow
🌐
GNU
ftp.gnu.org › gnu › gcc › gcc-4.9.2
Index of /gnu/gcc/gcc-4.9.2
Index of /gnu/gcc/gcc-4.9.2 · Apache/2.4.52 (Trisquel_GNU/Linux) Server at ftp.gnu.org Port 443
🌐
Linux From Scratch
linuxfromscratch.org › blfs › view › 7.7 › general › gcc.html
GCC-4.9.2
February 23, 2015 - Download (HTTP): http://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2
Top answer
1 of 4
22
yum install centos-release-scl-rh
yum install devtoolset-3-gcc devtoolset-3-gcc-c++
update-alternatives --install /usr/bin/gcc-4.9 gcc-4.9 /opt/rh/devtoolset-3/root/usr/bin/gcc 10
update-alternatives --install /usr/bin/g++-4.9 g++-4.9 /opt/rh/devtoolset-3/root/usr/bin/g++ 10
2 of 4
21

For installing the system compilers gcc, g++, the install command is # yum install gcc-c++ → Provides version 4.8.5 : /usr/bin/{ gcc, g++ }.

Other options: 1. gcc53-c++-5.3.0-1.el6.x86_64.rpm → https://drive.google.com/file/d/0B7S255p3kFXNRm9FVnZYUnhyZzg/view?usp=sharing&resourcekey=0-1N6zQa6Sbl_WycG1O9I7JA : Download and install : # cd Downloads/ && yum install ./gcc53-c++-5.3.0-1.el6.x86_64.rpm ..... Provides /usr/bin/{gcc53, g++53}.

  1. The devtoolset´s : https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ → # yum-config-manager --enable rhel-server-rhscl-7-rpms

Install gcc, g++ version 4.9.2 : # yum install devtoolset-3-gcc-c++

Note : You can have as many gcc/g++ versions as you want, installed at the same time. ( The system compilers are a must.)


  1. gcc49-c++-4.9.3-1.el6.x86_64.rpm https://drive.google.com/file/d/1Pwq1ua80dGM72i7rpDNAIIdfcR1WK-hG/view?usp=sharing → Provides /usr/bin/{gcc49, g++49}.

  1. gcc63-c++-6.3.0-1.el7.x86_64.rpm https://drive.google.com/file/d/1t4WrgvpEP-6_NN3qMJhz9MS3CJhHrHKc/view?usp=sharing → Provides /usr/bin/{gcc63, g++63}.

  2. gcc45-c++-4.5.4-1.el7.x86_64.rpm https://drive.google.com/file/d/15aRg-BPhuyaEyZA9Jy-iAyC21_pwN7nD/view?usp=sharing → Provides /usr/bin/{gcc45, g++45, gfortran45}

  3. gcc42-c++-4.2.4-1.el6.x86_64.rpm https://drive.google.com/file/d/1eYWk6Nd63xeqqAUoJldNWRuwEGO6cAyv/view?usp=sharing → Provides /usr/bin/{gcc42, g++42}


  1. gcc73-c++-7.3.0-1.el7.x86_64.rpm https://drive.google.com/file/d/1PgwCP5tu8D0EJbJVTqJd7Vg8dJ4l4noi/view?usp=sharing → Provides /usr/bin/{gcc73, g++73}

  2. gcc48-c++-4.8.5-1.el6.x86_64.rpm https://drive.google.com/file/d/1w6fW6oSflDDYZt_cOpGj3QMEmzUC8Q9L/view?usp=sharing → Provides /usr/bin/{gcc48, g++48, gfortran48}

  3. gcc84-c++-8.4.0-1.el7.x86_64.rpm https://drive.google.com/file/d/1xgFtsiDi2uiB1B0AcOaSpxVizzET-pJf/view?usp=sharing → Provides /usr/bin/{gcc84, g++84, gfortran84}

🌐
GNU
gcc.gnu.org › gcc-4.9
GCC 4.9 Release Series - GNU Project
To obtain GCC please use our mirror sites or our version control system.
🌐
GitHub
gist.github.com › craigminihan › b23c06afd9073ec32e0c
Build GCC 4.9.2 for C/C++ on CentOS 7 · GitHub
Build GCC 4.9.2 for C/C++ on CentOS 7. GitHub Gist: instantly share code, notes, and snippets.
🌐
GNU
gcc.gnu.org › releases.html
GCC Releases - GNU Project
April 30, 2026 - GCC releases may be downloaded from our mirror sites.
🌐
OSDN
osdn.net › find software › external sites › sourceforge.net › tdm-gcc mingw compiler › download file list
Downloading File /TDM-GCC Installer/Previous/1.1309.0/tdm-gcc-4.9.2.exe - TDM-GCC MinGW Compiler - OSDN
May 26, 2021 - Free download page for Project TDM-GCC MinGW Compiler's tdm-gcc-4.9.2.exe.The most recent stable releases from the GCC compiler project, for 32-bit and 64-bit Windows, cleverly disguised with a real installer & updater.
🌐
SourceForge
sourceforge.net › home › open source software › software development › compilers › tdm-gcc compiler › files
TDM-GCC Compiler - Browse /TDM-GCC 4.9 series/4.9.2-tdm64-1 at SourceForge.net
TDM-GCC Compiler /TDM-GCC 4.9 series/4.9.2-tdm64-1 files. Browse /TDM-GCC 4.9 series/4.9.2-tdm64-1 files for TDM-GCC Compiler, GCC for 32-bit and 64-bit Windows with a real installer & updater
🌐
GNU
gcc.gnu.org › onlinedocs › 4.9.2
GCC 4.9.2 manuals - GNU Project
October 26, 2022 - GCC 4.9.2 GCJ Manual (also in PDF or PostScript or an HTML tarball)
Find elsewhere
🌐
SourceForge
sourceforge.net › home › open source software › software development › compilers › tdm-gcc compiler › files
TDM-GCC Compiler - Browse /TDM-GCC 4.9 series/4.9.2-tdm-1 DW2 at SourceForge.net
Download Latest Version tdm64-gcc-5.1.0-2.exe (48.1 MB) Home / TDM-GCC 4.9 series / 4.9.2-tdm-1 DW2 · Other Useful Business Software · Custom VMs From 1 to 96 vCPUs With 99.95% Uptime · General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.
🌐
GitHub
gist.github.com › sophatvathana › 5f47ac5b9a984ec6163821cdf4819dea
gcc-4.9.2 · GitHub
Download ZIP · Raw · gcc-4.9.2 · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ·
🌐
Google
docs.google.com › viewer
Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.rar
Sign in · Use your Google Account · Email or phone · Forgot email · Type the text you hear or see · Create account
🌐
GitHub
gist.github.com › jtilly › 2827af06e331e8e6b53c
Install GCC 4.9.3 · GitHub
Save jtilly/2827af06e331e8e6b53c to your computer and use it in GitHub Desktop. Download ZIP · Install GCC 4.9.3 · Raw · install-gcc-4.9.3.sh · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › advanced users
Installing GCC 4.9.2 on bullseye - Raspberry Pi Forums
No support for such an old GCC on Bullseye. Oldest version in the repo is 9.3.0. You'd need to compile 4.x from scratch yourself or run a Jessie image inside a chroot jail. A better option is to fix the app.
🌐
GitHub
github.com › avilleret › mingw-w64-build › blob › master › bin › x86_64-w64-mingw32-gcc-4.9.2
mingw-w64-build/bin/x86_64-w64-mingw32-gcc-4.9.2 at master · avilleret/mingw-w64-build
this repo contains mingw-w64 binary build with c++11 thread support - mingw-w64-build/bin/x86_64-w64-mingw32-gcc-4.9.2 at master · avilleret/mingw-w64-build
Author   avilleret
🌐
GNU
ftp.gnu.org › gnu › gcc › gcc-4.9.0
Index of /gnu/gcc/gcc-4.9.0
Apache/2.4.52 (Trisquel_GNU/Linux) Server at ftp.gnu.org Port 443
🌐
GNU
ftp.gnu.org › gnu › gcc › gcc-4.9.3
Index of /gnu/gcc/gcc-4.9.3
Apache/2.4.52 (Trisquel_GNU/Linux) Server at ftp.gnu.org Port 443