Reputation: 313
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?
Upvotes: 0
Views: 127
Reputation: 8380
try doing
sudo ln -s $(which gcc-4.2) gcc
instead. This will find the version of gcc-4.2
you've installed and link the default gcc
to it.
Upvotes: 1