Maybe simple...

sudo apt-get install gcc

... could be enough?

Answer from Jot eN on askubuntu.com
Discussions

/bin/sh: 1: arm-linux-gcc: not found on ubuntu - Stack Overflow
I m trying to build using gcc arm cross compiler and i get following error Building file: ../src/application.c Invoking: GCC C Compiler arm-linux-gcc -O3 -Wall -c -I -fmessage-length=0 -MMD -MP -M... More on stackoverflow.com
🌐 stackoverflow.com
March 19, 2017
How do I fix gcc not found error when cross compiling the linux kernel for beaglebone black - Stack Overflow
I am trying to cross-compile the Linux kernel for the beaglebone black on Ubuntu 22.04 using the command line below: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- bb.org_defconfig I get the follo... More on stackoverflow.com
🌐 stackoverflow.com
/bin/sh: 1: aarch64-linux-android-gcc: not found
Need a developer help here. I've been trying to compile my first kernel from source but I'm running into the same error over and over again, no matter what arch I use (arm/arm64). I asked help on PM but people hate answering Support questions in... More on xdaforums.com
🌐 xdaforums.com
2
0
December 25, 2015
gnu make - Why is there such error of "arm-linux-gcc: not found"? - Unix & Linux Stack Exchange
make: arm-linux-gcc: No such file or directory /bin/sh: 1: arm-linux-gcc: not found dirname: missing operand Try 'dirname --help' for more information. More on unix.stackexchange.com
🌐 unix.stackexchange.com
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-embedded-and-single-board-computer-78 › bin-sh-gcc-command-not-found-649627
/bin/sh: gcc: command not found
June 16, 2008 - hi, i am new to embedded linux,also to this forum.i am trying to compile kernel and uboot for arm target board on the centos.i installed crosstool in
🌐
XDA Forums
xdaforums.com › home › general discussion › general questions and answers
/bin/sh: 1: aarch64-linux-android-gcc: not found | XDA Forums
December 25, 2015 - export PATH=*pathToToolChain*:$PATH A convenient way is to include it into your shell rc file (e.g. .bashrc). Cheers! ... You gotta add your toolchain to the PATH variable, otherwise it won't be found.
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 72319110 › how-to-fix-bin-sh-gcc-11-3-0-1-command-not-found
r - How to fix /bin/sh: gcc-11.3.0_1: command not found - Stack Overflow
Running brew list --versions gcc, return gcc 11.3.0_1, ... Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/4.2.1 Apple clang version 13.0.0 (clang-1300.0.27.3) Target: arm64-apple-darwin21.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install gcc on ubuntu 26.04, 24.04 and 22.04
How to Install GCC on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
April 30, 2026 - Build scripts or Makefiles that reference gcc without a version suffix fail with gcc: command not found or /bin/sh: 1: gcc: not found when no unversioned symlink exists.
🌐
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 - For example, if GCC is located in /usr/local/bin/gcc, you would add the following line to your .bashrc or .bash_profile: ... Now, try running the gcc --version command again. If everything is set up correctly, you should see the version number without any errors. Encountering the “gcc command not found” error in Bash can be a common hurdle for developers, but it is usually easy to fix.
🌐
Reddit
reddit.com › r/manjarolinux › /bin/sh: gcc: command not found
r/ManjaroLinux on Reddit: /bin/sh: gcc: command not found
January 23, 2019 -

I'm also getting the same for cc and pkg-config. I was trying to compile a kernel and install something from AUR. Searching around didn't give me any answers that I felt comfortable following as I couldn't establish that the contexts in which the issues occurred were similar enough. Any help appreciated.`

🌐
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 - On FreeBSD 10.0 gcc is no more part of the system, all gcc version installed from ports are versioned, that is gcc 4.6 is installed as gcc46, g++46, etc., so creating a symlink in /usr/local/bin should be fine (as root) # cd /usr/local/bin # ln -s gcc46 gcc # ln -s g++46 g++ I think there are no side effects
🌐
STMicroelectronics Community
community.st.com › t5 › stm32-mpus-products › gcc-comand-not-found › td-p › 168479
Solved: gcc comand not found - STMicroelectronics Community
October 26, 2020 - make[1]: Entering directory '/home/root/buildroot/support/kconfig' gcc -DCURSES_LOC="<curses.h>" -DLOCALE -DKBUILD_NO_NLS -I/home/root/buildroot/output/build/buildroot-config -DCONFIG_=\"\" -c conf.c -o /home/root/buildroot/output/build/buildroot-config/conf.o · /bin/sh: gcc: not found ·
🌐
Google Groups
groups.google.com › g › android-x86 › c › WsYiweMd4Tw
/bin/sh: 1: x86_64-linux-android-gcc: not found error
November 11, 2014 - I got the same error when building on Ubuntu 12.04.5 LTS. I had to find where x86_64-linux-android-gcc binary was (somewhere in repo directory, use find) and add that directory to PATH. On the side note, I didn't have this error when I was building kitkat branch some time ago.
🌐
GitHub
github.com › android-rpi › device_brcm_rpi3 › issues › 3
Compile error arm-linux-gnueabihf-gcc not found · Issue #3 · android-rpi/device_brcm_rpi3
April 15, 2016 - make: arm-linux-gnueabihf-gcc: Command not found scripts/kconfig/conf --silentoldconfig Kconfig make: arm-linux-gnueabihf-gcc: Command not found CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: 'include/generated/mach-types.h' is up to date. CC kernel/bounds.s /bin/sh: 1: arm-linux-gnueabihf-gcc: not found Kbuild:44: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 127 Makefile:992: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 ·
Author   android-rpi