我的Homebrew设置已损坏。我的brew命令无法正常工作,因此我尝试使用以下命令安装新命令:
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
但它说:
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
当我尝试卸载时,我收到此消息:
Failed to locate Homebrew!
我也在我的shell邮箱中收到一些邮件说:
Subject: Cron <khemkv02@MC-S089998> /usr/local/Cellar/openssl-osx-ca/1.0.5 /bin/openssl-osx-ca /usr/local/bin/brew
X-Cron-Env: < SHELL=/bin/sh>
X-Cron-Env: < PATH=/usr/bin:/bin>
X-Cron-Env: < LOGNAME=khemkv02>
X-Cron-Env: < USER=khemkv02>
X-Cron-Env: < HOME=/Users/khemkv02>
Message-Id: <20150929150001.D9295FF315@MC-S089998.local>
Date: Tue, 29 Sep 2015 16:00:00 +0100 (BST)
**Homebrew not in PATH or given arguments, cannot continue**
有人可以帮忙吗?
答案 0 :(得分:1)
尝试删除.git
:
rm -rf /usr/local/.git
因为我在install
脚本中找到了 Homebrew已经安装的消息:
abort <<-EOABORT unless Dir["#{HOMEBREW_PREFIX}/.git/*"].empty?
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
EOABORT