I have installed clang_select
and I have used port select clang mp-clang-3.3
a while ago, but now install builds seem to crash.
Therefore I'd like to go back to using the original /usr/bin/clang
command. How can I do that?
I have tried sudo port select clang none
but it did not work. (If it is relevant, I have XCode 4.5.)
First, make sure you've installed the Command Line Tools
component of Xcode 4.5 ( Xcode -> Preferences -> Downloads -> Components
). That will ensure there is a /usr/bin/clang
installed. Then, either use that absolute path or modify your shell $PATH
so that /usr/bin
comes before /opt/local/bin
or wherever you have the MacPorts clang
installed or, if you are not planning to use the MacPorts clang
at all, you can remove it with port uninstall clang
or whatever specific port you installed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.