Sorry I can't comment yet.

But I must point out that the original ln command is incorrect, which creates an incorrect relative link usr/bin/gcc-4.8 under /usr/bin/

Correct command is

sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc

or

sudo ln -s gcc-4.8 /usr/bin/gcc
Answer from Alvin Liang on askubuntu.com
๐ŸŒ
FreeBSD
forums.freebsd.org โ€บ ports and packages โ€บ installation and maintenance of ports or packages
gcc installed successfully but its Command not found | The FreeBSD Forums
February 20, 2014 - Click to expand... gcc is not part of FreeBSD 10 so the commands won't be there. I'm guessing that's what the OP is using. ... devel/gmake and the related utilities that the compiler is called something else than the usual. gmake CC=gcc44 CXX=g++44 CPP="gcc44 -E" If it still doesn't work I'd guess that the Makefile you have hardcodes the name to gcc (stupid practice but I've seen it done).
Discussions

c - How to solve error message "gccโ€ฌ: command not found" (only with arguments) on Ubuntu - Stack Overflow
I am working with Ubuntu 19.04 (Disco Dingo), and I have GCC installed. When I run gcc I am getting an error showing that I do have gcc: gcc: fatal error: no input files compilation terminated. ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
zsh - GCC installed but command not found - Stack Overflow
I'm new to linux and I'm having a hard time trying to get this work. I uninstalled and installed gcc a few times. Now when I run gcc --version, it still says zsh: command not found. When I go to ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
windows - "bash: gcc: command not found" -- Error while installing GCC, GDB and G++ with MSYS2 - Stack Overflow
I'm using that instruction to install MinGW, but face a problem on checking versions. The error that occuries after $ gcc --version looks like bash: gcc: command not found I've already checked my More on stackoverflow.com
๐ŸŒ stackoverflow.com
Trying to install gcc on a linux terminal, but I get an error - Unix & Linux Stack Exchange
E: Failed to fetch http://secu...in/l/linux/linux-libc-dev_5.4.0-81.91_amd64.deb 404 Not Found [IP: 91.189.88.152 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? When I type "gcc" again, it just tells me to sudo apt install it ... More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
๐ŸŒ
Delft Stack
delftstack.com โ€บ home โ€บ howto โ€บ linux โ€บ solve gcc command not found error in bash
How to Solve GCC Command Not Found Error in Bash | Delft Stack
March 11, 2025 - Encountering the โ€œgcc command not foundโ€ error in Bash can be a common hurdle for developers, but it is usually easy to fix. By checking if GCC is installed, installing it if necessary, and ensuring that your PATH variable is correctly set, you ...
๐ŸŒ
YouTube
youtube.com โ€บ watch
[SOLVED] Command 'gcc' not found | Build Essential โœ… GCC โŒ - YouTube
๐ƒ๐ž๐ฆ๐ฒ๐ฌ๐ญ๐ข๐Ÿ๐ฒ๐ข๐ง๐  '๐›๐ฎ๐ข๐ฅ๐-๐ž๐ฌ๐ฌ๐ž๐ง๐ญ๐ข๐š๐ฅ' ๐ข๐ง ๐”๐›๐ฎ๐ง๐ญ๐ฎ ๐Ÿ๐จ๐ซ ๐’๐ž๐š๐ฆ๐ฅ๐ž๐ฌ๐ฌ ๐’๐จ๐Ÿ๐ญ๐ฐ๐š๐ซ๐ž ๐‚๐จ๐ฆ๐ฉ๐ข๐ฅ๐š๐ญ๐ข๐จ๐ง! ๐Ÿ› ๏ธโœจ Explore the ...
Published ย  January 14, 2024
๐ŸŒ
iO Flood
ioflood.com โ€บ blog โ€บ install-gcc-command-linux
Installing and Using the GCC Command: Linux User Guide
January 2, 2024 - If you see this error, it means ... methods we discussed earlier. If GCC is installed but not in your PATH, youโ€™ll need to add it....
Find elsewhere
๐ŸŒ
Ask Ubuntu
askubuntu.com โ€บ questions โ€บ 1144595 โ€บ gcc-is-installed-but-dont-know-how-to-fix
software installation - gcc is installed but don't know how to fix - Ask Ubuntu
May 19, 2019 - ... this doesn't work as well.amani@amani-GT72S-6QE:~/Downloads$ gcc -v Command 'gcc' not found, but can be installed with: sudo apt install gcc amani@amani-GT72S-6QE:~/Downloads$ gcc --help Command 'gcc' not found, but can be installed with: ...
๐ŸŒ
STMicroelectronics Community
community.st.com โ€บ t5 โ€บ stm32-mpus-products-and-hardware โ€บ gcc-comand-not-found โ€บ td-p โ€บ 168479
Solved: gcc comand not found - STMicroelectronics Community
October 26, 2020 - You usually never install gcc on the board, resources are way to low to compile on target. All the development is done on Ubuntu PC (or using a Virtual Machine on a W10 PC). In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. Tip of the day: Try Sidekick STM32 AI agent, see here ... Oh I understand . So most of the preliminary commands on the following website are done on Ubuntu terminal ?
๐ŸŒ
CodeWithHarry
codewithharry.com โ€บ blogpost โ€บ solved-gcc-not-recognized-error-windows
[Solved] gcc: The term 'gcc' is not recognized as the name of a cmdlet, function... | Blog | CodeWithHarry
The solution is to simply install it. Reason 2: The Compiler path is not included in your systemโ€™s 'PATH' environment variable. In previous Windows versions, the error looked like this: "'gcc' is not recognized as an internal or external command, operable program, or batch file."
๐ŸŒ
LinuxQuestions.org
linuxquestions.org โ€บ questions โ€บ linux-newbie-8 โ€บ gcc-installed-but-not-in-the-$path-no-commands-possible-740515
GCC installed but not in the $PATH. No commands possible.
I am new to linux and using RHEL 5...... Each time i use the command ./configure.... it says, no acceptible c compiler found. When i type in whereis
๐ŸŒ
YouTube
youtube.com โ€บ watch
[Solved] gcc is not recognized as an internal or external command operable program or batch file - YouTube
gcc is not recognized as an internal or external command operable program or batch file and the term 'gcc' is not recognized as the name of a cmdlet function...
Published ย  January 19, 2024
๐ŸŒ
openSUSE Forums
forums.opensuse.org โ€บ english โ€บ programming/scripting
gcc command not found - Programming/Scripting - openSUSE Forums
August 20, 2008 - I have a problemโ€ฆIn open suse 11.0 ,there is not any gcc present with distribution.And also i have not any internet connection.So i downloaded the RPM packages of gcc 4.3.1 from open suse software package website and i install it through command rpm -ivh filename.rpm but when i type gcc on command prompt it told that GCC command not found.I install all dependencies.
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ c/c++
gcc not found ... - Raspberry Pi Forums
To get back some more space by removing the downloaded .deb files (you don't need them once the package has been installed), use sudo apt-get clean ... Hi I think It's just you don't have alias short name (gcc g++ etc...) on /usr/bin Use the command (gcc-4.8 -v or g++-4.8 -v) he will answer of his options Regards