lrwxr-xr-x 1 root wheel 16 Apr 6 13:10 g++ -> /usr/bin/g++-4.5
-rwxr-xr-x 1 root wheel 14272 Feb 14 2014 gatherheaderdoc
lrwxr-xr-x 1 root wheel 16 Apr 6 13:11 gcc -> /usr/bin/gcc-4.5
lrwxr-xr-x 1 root wheel 22 Jul 2 2014 gcc-4.2 -> /usr/local/bin/gcc-4.2
lrwxr-xr-x 1 root wheel 12 Apr 6 10:59 gcc-4.4 -> /usr/bin/gcc
lrwxr-xr-x 1 root wheel 12 Apr 6 11:17 gcc-4.5 -> /usr/bin/gcc
Hi, I'm kinda new to linux. So i need some help with this issue.
I updated a new version of gcc and when I tried to check the version using gcc --version
, I get the following error, zsh: too many levels of symbolic links: gcc
.
I ran ls -l
on /usr/bin
and I found the above pasted cyclic link. Could someone help me on how to resolve this?
I'm sure this has already been covered in a previous answer, but, you can see you have /usr/bin/gcc which is linked to /usr/bin/gcc-4.5 which is linked to /usr/bin/gcc. Circular. So, zsh eventually stops going around and circles and gives you that message. You need to erase /usr/bin/gcc* and then reinstall it?