0

GCC was reinstalled on my mac through brew, but when I did which gcc, it returned /usr/bin/gcc, instead of /usr/local/bin/gcc.

I restarted my computer, but it did not help. echo $PATH returns:

/Users/myname/anaconda/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin
bfontaine
  • 18,169
  • 13
  • 73
  • 107
user6948979
  • 65
  • 2
  • 9

1 Answers1

0

The reason is brew install gcc does not create gcc binary, but gcc-7

user6948979
  • 65
  • 2
  • 9