Last Updated: February 25, 2016
·
1.95K
· artchang

make: /usr/bin/gcc-4.2: No such file or directory

Every time I set up a new development environment, gcc-4.2 always errors out because it's no longer included in the newer mac osxs. Here is the fix using homebrew

$ brew tap homebrew/dupes

$ brew install apple-gcc42

$ sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2