I’ve tried to set up CUDA and XCode on my mac to work together, but it failed.
During the process I went to /usr/bin/ and type:
and typed > sudo rm gcc
then > sudo ln -s /opt/local/bin/gcc-4.2 gcc
I think I screwed up something because now when I type in
> gcc
into the terminal, it says
-bash: gcc: command not found
how do I fix it and make the default gcc 4.2?
try doing
instead. This will find the version of
gcc-4.2you’ve installed and link the defaultgccto it.