Wednesday, September 19, 2007

Mac OSX and gcc_select

I was installing a gem and then trying to run a short test and received this error.

cc: installation problem, cannot exec `cc1': No such file or directory

After a quick Google search I saw the problem appeared to be with gcc itself. I then ran gcc_select and realized I set the version to 3.3 at some point in the past (most likely to install other software) and when I set it back to 4.0, the problem vanished.

sudo gcc_select 4.0

No comments: