Passion Factory

Playground Of Syaiful Bahri

Gem Installing Problem Definitely GCC Missing Problem

Last day i have some problem with my harddrive. I can not boot into system after trying several way like repair the disk inside the OS and installer disc and also using DiskWarrior.

I’m kind of frustrated so i’m decide to save my files on the disk first using GParted live dvd method then doing fresh install for my system.

Then the problem get around after updating my system to 10.8.2 version (Mountain Lion) when using gem install “something”, i’m encounter error below.

1
2
3
ERROR: Failed to build gem native extension.
make: /usr/bin/gcc-4.2: No such file or directory

Yeah, apple definitely remove gcc on mountain lion. What should we do to fix this problem is installing missing gcc into system. I’m gonna use brew package manager, just simply install script like apt-get on Debian Linux distribution.

1
brew install apple-gcc42

Then fix the path

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

Comments