When trying to install scikit on my Mac (OS X Lion) I stumbled upon this error:
gcc-4.2 not found, using clang instead.
I searched how to fix this and it seems that the environment variable CC is not correctly set. My question now is, how can I change this and to what do I have to change this? In my /usr/lib/ I do see the g++, gcc, llvm-g++-4.2 and llvm-gcc-4.2 executables. Also when I check env I don’t see the CC variable. Even when I try to export CC=gcc I don’t see it with the env command.
If scikits is explicitly looking for gcc-4.2, it sounds like it’s hardcoded in the setup procedure (bad idea i.m.o.).
I would then just go for the symlink solution; a bit different than my comment or Ramneek’s answer, but pretty much the same: