我似乎把自己逼入了绝境。
我第一次安装Homebrew的时候已经进行了一半,但它被卡住了。等待了大约15分钟后,我退出了终端。我最初输入的是来自自制homepage的内容。
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"我重新打开了终端,试着重新安装,然后-
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup因此,按照建议,我运行了
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup并得到了
-bash: brew: command not found我试图运行Homebrew常见问题解答中的卸载脚本,但似乎也没有帮助。还有什么我可以试试的吗?如何手动卸载?
发布于 2012-11-15 21:28:34
那么,如果你再次运行ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)“,会发生什么呢?
在你杀死terminal之后,你有没有ps auxw | grep -E 'ruby|curl‘并杀死它们?
您还在使用/usr/local做其他事情吗?如果没有,您可以使用rm -rf /usr/local,然后再次运行安装命令。
发布于 2013-02-07 06:16:23
我不是终端专家,但我发现我的.gitconfig中有一行阻止了我运行安装程序:
[push]
default = simple在我的.gitconfig中注释了这一行之后,安装程序运行得很好。
发布于 2021-08-12 09:56:58
如果您运行rm -rf /usr/local,则可能会被拒绝权限或冒着删除其他已安装程序的文件的风险。只删除/usr/local/Homebrew/文件夹对我有效
https://stackoverflow.com/questions/13389760
复制相似问题