Maybe simple...

sudo apt-get install gcc

... could be enough?

Answer from Jot eN on askubuntu.com
Discussions

"-bash: gcc: command not found" using cygwin when compiling c? - Stack Overflow
I just installed the latest version of Cygwin ans for some reason when I try to compile code, it always flashes me this error: -bash: gcc: command not I also don't seem to have the gcc.exe that p... More on stackoverflow.com
🌐 stackoverflow.com
macos - GCC : Command not found - Ask Different
I'm very new to Mac and right now my operating system is 10.10 Yosemite. I installed XCode and Xcode CLT, gcc came along with it as well. I was asked to change the default compiler to gcc. I went ... More on apple.stackexchange.com
🌐 apple.stackexchange.com
November 5, 2014
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
gcc installed successfully but its Command not found | The FreeBSD Forums
I have install gcc successfully using: lang/gcc44 And I also tried also: pkg install gcc But when I try to use it the following appears: gcc: Command not found. When I issue pkg install gcc it shows: Updating repository catalogue gcc-4.6.4 already installed I am using FreeBSD 10.0. More on forums.freebsd.org
🌐 forums.freebsd.org
February 20, 2014
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › gcc-command-not-found-4175459278
gcc:command not found
Getting the statement "gcc:command not found" when i try to execute c program in fedore(I am using fedora in Virtual Box)
🌐
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
Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + gcc + ~~~~ + CategoryInfo : ObjectNotFound: (gcc:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
🌐
iO Flood
ioflood.com › blog › install-gcc-command-linux
Installing and Using the GCC Command: Linux User Guide
January 2, 2024 - For RPM-based distributions like CentOS, you would run the command sudo yum install gcc. # For Debian based distributions like Ubuntu sudo apt-get install gcc # For RPM-based distributions like CentOS sudo yum install gcc # Output: # 'gcc is already the newest version (4:7.4.0-1ubuntu2.3).' # OR # 'Package gcc is not available, but is referred to by another package...'
🌐
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 ...
Find elsewhere
🌐
Bobby Hadz
bobbyhadz.com › blog › gcc-is-not-recognized-as-an-internal-or-external-command
gcc is not recognized as an internal or external command | bobbyhadz
April 4, 2024 - This is the file that is run when you issue gcc commands from your terminal. When you add the PATH to the MinGW bin folder to your PATH environment variable, your terminal is able to find the gcc.exe file. Click on OK 3 times to apply the changes. Close all terminal sessions for the changes to be applied. Note: it's very important to close and reopen CMD for the PATH environment variable to get updated.
🌐
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 - If you really need one just create an alias: alias gcc gcc44. ... There will never be a command gcc.
🌐
NixOS Discourse
discourse.nixos.org › help
Gcc: command not found - Help - NixOS Discourse
October 1, 2023 - I’m trying to adapt the nixpkgs prover9 package (https://github.com/NixOS/nixpkgs/blob/cba1e5d52acb5251b418d0c95c3dcec7d5dc003b/pkgs/applications/science/logic/prover9/default.nix) to build on my mac (aarch64-darwin, mac os 13.6). Prover9 itself builds fine from source with just “make all”, not involving nix.
🌐
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 ?
🌐
Apple Community
discussions.apple.com › thread › 2655687
bash: gcc command not found - Apple Community
November 21, 2010 - What happens when you type /usr/bin/gcc ? If it still can't be found I would guess you didn't install Xcode properly (Unix Development Support?) ... I just fell on this forum, I have the same problem: I found gcc: it appears it has been moved during installation of developer tools to the location: ...
🌐
Reddit
reddit.com › r/c_programming › i downloaded and installed mingw. typing gcc in the windows command line prints: gcc is not recognized as an internal or external command
I downloaded and installed MinGW. Typing gcc in the Windows command line prints: gcc is not recognized as an internal or external command : r/C_Programming
September 14, 2024 - Go to the PATH under your user profile and add your MinGW-64 binary directory. This will probably be something like c:\Program Files\mingw-w64\...\mingw64\bin. If you’re not sure where it is, search for gcc.exe in Explorer. (Be sure to turn off Search File Contents!) Then open a new command ...
🌐
Reddit
reddit.com › r/linuxquestions › linux from scratch: chapter 5.3 x86_64-lfs-linux-gnu-gcc: command not found
r/linuxquestions on Reddit: Linux From Scratch: chapter 5.3 x86_64-lfs-linux-gnu-gcc: command not found
March 7, 2021 -

Hello, when i enter

cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
  `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h

at gcc-10.2.0 i get the error message:

bash: x86_64-lfs-linux-gnu-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information
bash: /install-tools/include/limits.h: No such file or directory

I tried re-making everything in chapter 5.3 and got the error (at the make process): [Makefile:12848: configure-target-libcc] Error 1 and [Makefile:945: all] Error 2.

Any ideas?

🌐
Google Groups
groups.google.com › g › beagleboard › c › JrOQBmaYXyQ
gcc: command not found. Error while compiling c - program
ubuntu@arm:~$ sudo find / -name '*gcc*' [sudo] password for ubuntu: /var/lib/dpkg/info/libgcc1:armhf.symbols /var/lib/dpkg/info/gcc-4.8-base:armhf.md5sums /var/lib/dpkg/info/libgcc1:armhf.md5sums /var/lib/dpkg/info/gcc-4.8-base:armhf.list /var/lib/dpkg/info/libgcc1:armhf.shlibs /var/lib/dpkg/info/libgcc1:armhf.postinst /var/lib/dpkg/info/libgcc1:armhf.postrm /var/lib/dpkg/info/libgcc1:armhf.list /lib/arm-linux-gnueabihf/libgcc_s.so.1 /home/dell/sources/vim74/runtime/compiler/gcc.vim /usr/share/lintian/overrides/libgcc1 /usr/share/doc/gcc-4.8-base /usr/share/doc/libgcc1 /usr/lib/gcc and the folder /usr/lib/gcc/arm-linux-gnueabihf contain two folders(4.8 and 4.8.1(, but both are empty.