Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 如何回到默认的叮当声?_Macos_Osx Lion_Clang_Xcode4.5_Macports - Fatal编程技术网

Macos 如何回到默认的叮当声?

Macos 如何回到默认的叮当声?,macos,osx-lion,clang,xcode4.5,macports,Macos,Osx Lion,Clang,Xcode4.5,Macports,不久前,我安装了clang_select,并使用了port select clang mp-clang-3.3,但现在安装版本似乎崩溃了 因此,我想回到原来的/usr/bin/clang命令。我该怎么做 我尝试了sudo port select clang none,但没有成功。 (如果相关,我有XCode 4.5。)首先,确保您已经安装了XCode 4.5的命令行工具组件(XCode->Preferences->Downloads->Components)。这将确保安装了/usr/bin/cl

不久前,我安装了
clang_select
,并使用了
port select clang mp-clang-3.3
,但现在安装版本似乎崩溃了

因此,我想回到原来的
/usr/bin/clang
命令。我该怎么做

我尝试了
sudo port select clang none
,但没有成功。
(如果相关,我有XCode 4.5。)

首先,确保您已经安装了XCode 4.5的
命令行工具
组件(
XCode->Preferences->Downloads->Components
)。这将确保安装了
/usr/bin/clang
。然后,要么使用该绝对路径,要么修改shell
$path
,使
/usr/bin
位于
/opt/local/bin
之前,或者在安装了MacPorts
clang
的任何位置,或者,如果您根本不打算使用MacPorts
clang
,您可以使用
port uninstall clang
或您安装的任何特定端口将其删除。

首先,确保您已经安装了Xcode 4.5的
命令行工具组件(
Xcode->Preferences->Downloads->Components
)。这将确保安装了
/usr/bin/clang
。然后,要么使用该绝对路径,要么修改shell
$path
,使
/usr/bin
位于
/opt/local/bin
之前,或者在安装了MacPorts
clang
的任何位置,或者,如果您根本不打算使用MacPorts
clang
,你可以用
端口卸载程序来删除它,或者用你安装的任何特定端口来删除它。

我不确定,但可能应该把它移到苹果。stackexchange:他们会告诉开发者工具应该转到stackoverflow。因为这是在使用macports,而不仅仅是一个开发工具的问题,我想这对这两个方面都是一个主题。stackexchange:他们会告诉开发者工具应该转到stackoverflow。因为这是在使用macports,而不仅仅是一个开发工具问题,我希望这会是关于这两个问题的话题,例如,和许多其他标记有它的人都有帮助,thx我安装了新的CLT(由于某种原因没有得到更新),最后我不必卸载就可以停用clang。这很有帮助,thx我安装了新的CLT(由于某种原因没有得到更新),最后我不必卸载就可以停用clang。