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.comGCC not found
zsh - GCC installed but command not found - Stack Overflow
node.js - command 'gcc' not found in windows subsystem for linux - Stack Overflow
windows - "bash: gcc: command not found" -- Error while installing GCC, GDB and G++ with MSYS2 - Stack Overflow
Videos
While installing vmware this error popup gcc not found. How to tackle it
Maybe 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!
