當我試圖安裝自制軟件時,我得到了這個錯誤。它開始很簡單,但後來我很困惑。自制安裝,但也沒有安裝
cjbrigna$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/bin/chgrp admin /Library/Caches/Homebrew
Password:
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/homebrew/': Could not resolve host: github.com
Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
沒問題,github被關了一會兒。所以我稍後再試。
cjbrigna$ 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)"
這讓我覺得我有自制的東西。
cjbrigna$ brew help
-sh: brew: command not found
很明顯,我沒有自制的。
cjbrigna$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
現在我無法安裝或卸載自制軟件。這沒有意義。我做錯了什麼?我感謝任何幫助。
'ls -ld/usr/local/.git'打印什麼? – cel
drwxr-xr-x 11 cjbrigna wheel 374 Oct 6 16:04 /usr/local/.git – Chase
我試試看:'cd /usr/local/.git && git pull'之後我會嘗試卸載腳本時間。 – cel