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

GCC not found
Try sudo apt install build-essential it has dependencies for GCC, G++, make, libc-dev etc it's kind of odd that you don't already have it installed More on reddit.com
🌐 r/Ubuntu
4
0
February 19, 2024
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
node.js - command 'gcc' not found in windows subsystem for linux - Stack Overflow
I have been trying to run some c files through wsl(ubuntu 20.04). I have set the path to the executable file in my windows env variable. It works good in cmd/powershell but as mentioned here we can 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
🌐
YouTube
youtube.com › watch
[SOLVED] Command 'gcc' not found | Build Essential ✅ GCC ❌ - YouTube
𝐃𝐞𝐦𝐲𝐬𝐭𝐢𝐟𝐲𝐢𝐧𝐠 '𝐛𝐮𝐢𝐥𝐝-𝐞𝐬𝐬𝐞𝐧𝐭𝐢𝐚𝐥' 𝐢𝐧 𝐔𝐛𝐮𝐧𝐭𝐮 𝐟𝐨𝐫 𝐒𝐞𝐚𝐦𝐥𝐞𝐬𝐬 𝐒𝐨𝐟𝐭𝐰𝐚𝐫𝐞 𝐂𝐨𝐦𝐩𝐢𝐥𝐚𝐭𝐢𝐨𝐧! 🛠️✨ Explore the ...
Published   January 14, 2024
🌐
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 ...
🌐
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
🌐
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.
🌐
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
🌐
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