Fix for “make: /usr/bin/gcc-4.2: No such file or directory”
When trying to install a gem after upgrading to Mountain Lion, installing Xcode 4.4.1, and then downloading the Command Line Tools, you may encounter the following error:
make
compiling autolink.c
make: /usr/bin/gcc-4.2: No such file or directory
make: *** [autolink.o] Error 1
To solve this problem, just symlink the file in the same directory and then give it the name that the gem install script is looking for:
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
Written by Huascar A. Sanchez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mountainlion
Authors
hsanchez
5.274K
Related Tags
#mountainlion
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#