###質問内容
Dockerをインストールしたいのですが、 $ brew update
がうまくいきません。
原因はおそらく、gitをhomebrewからではなく、Gitのサイト(https://git-scm.com/)からダウンロードしたことにあると思います。
###試したこと
$ brew update
を実行すると、
Warning: git 2.18.0 is already installed and up-to-date To reinstall 2.18.0, run `brew reinstall git` Error: Git must be installed and in your PATH!
となり、 $ brew reinstall git
を実行すると、
==> Reinstalling git ==> Downloading https://homebrew.bintray.com/bottles/git-2.18.0.mojave.bottle.ta Already downloaded: /Users/kidayuumiyabi/Library/Caches/Homebrew/downloads/569b15b4cd875d89913341d8a9a8dd1d07159445dc1734e27539dbb40d121e9e--git-2.18.0.mojave.bottle.tar.gz ==> Pouring git-2.18.0.mojave.bottle.tar.gz ==> Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d zsh completions and functions have been installed to: /usr/local/share/zsh/site-functions Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/git ==> Summary ???? /usr/local/Cellar/git/2.18.0: 1,488 files, 296.7MB
となります。
ここで、一度 $ brew install caskroom/cask/brew-cask
を実行してみようとしたのですが、
Warning: git 2.18.0 is already installed and up-to-date To reinstall 2.18.0, run `brew reinstall git` Error: Git must be installed and in your PATH! ==> Installing git Warning: git 2.18.0 is already installed and up-to-date To reinstall 2.18.0, run `brew reinstall git` Error: Git is unavailable yuganoMacBook-puro:~ kidayuumiyabi$ yuganoMacBook-puro:~ kidayuumiyabi$ brew update Warning: git 2.18.0 is already installed and up-to-date To reinstall 2.18.0, run `brew reinstall git` Error: Git must be installed and in your PATH!
となり、また $ brew reinstall git
をしろといわれます。
どうしたら解決するでしょうか?
ご回答よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/08 15:12