Maybe simple...
sudo apt-get install gcc
... could be enough?
Answer from Jot eN on askubuntu.comMaybe simple...
sudo apt-get install gcc
... could be enough?
Do this: open a terminal and type gcc --version. Does anything come up?
Alternatively, search for the gcc executable, which should be located in /usr/bin.
Do ls /usr/bin | grep gcc. What output do you get from that command?
If you get no output from either command, then you need to find your gcc executable wherever you installed it (somewhere in /usr/share maybe?). When found, do cd /usr/bin && ln -s [ABSOLUTE PATH OF GCC].
If you got no output from the first, but output from the second, then you have serious trouble, because /usr/bin is not in your PATH. Edit the file /etc/environment and ADD the following line to the end of the document: PATH="$PATH:/usr/bin".
If you got output from the first, then there is a problem somewhere with bash not reading its own PATH. I think hell would freeze before the first works, but watch you prove me wrong and freeze hell for me. :)
Hope this helps! +1 me if it does!
"-bash: gcc: command not found" using cygwin when compiling c? - Stack Overflow
macos - GCC : Command not found - Ask Different
c - How to solve error message "gcc: command not found" (only with arguments) on Ubuntu - Stack Overflow
gcc installed successfully but its Command not found | The FreeBSD Forums
Videos
While installing vmware this error popup gcc not found. How to tackle it
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?
