0
GCC通過brew重新安裝在我的mac上,但是當我做了which gcc
時,它返回/usr/bin/gcc
,而不是/usr/local/bin/gcc
。找不到合適的GCC
我重新啓動了電腦,但沒有幫助。 echo $PATH
回報:
/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
你在目錄中有一個'gcc'二進制'在/ usr/local/bin目錄/ gcc' ? – snoopy
@MarkFarrugia @snoopy是的,它是'/ usr/local/bin/gcc @ - >/usr/local/Cellar/gcc/6.3.0_1/bin/gcc-6' – user6948979
您是否嘗試過創建符號鏈接?使用類似於以下的命令:'ln -s /usr/local/Cellar/gcc/6.3.0_1/bin/gcc-6 gcc' – Pyves