質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Q&A

解決済

2回答

5526閲覧

brew update fails with "Git must be installed and in your PATH!

tomo39-.

総合スコア27

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

0グッド

1クリップ

投稿2017/12/26 07:48

brew をアップロードしようとするとエラーが出ました。
助けてください。cocopadsをインストールするまでの準備で妨げになってしまいました。

$ brew update Warning: git 2.15.1_1 is already installed Error: Git must be installed and in your PATH!
$ brew config HOMEBREW_VERSION: >=1.4.0 (shallow or no git repository) ORIGIN: (none) HEAD: (none) Last commit: never Core tap ORIGIN: (none) Core tap HEAD: (none) Core tap last commit: never HOMEBREW_PREFIX: /usr/local HOMEBREW_NO_ANALYTICS_THIS_RUN: 1 CPU: quad-core 64-bit broadwell Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby Clang: N/A Git: N/A Curl: 7.54.0 => /usr/bin/curl Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby Java: N/A macOS: 10.12.6-x86_64 Xcode: N/A CLT: N/A X11: 2.7.11 => /opt/X11 $ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Git could not be found in your PATH. Homebrew uses Git for several internal functions, and some formulae use Git checkouts instead of stable tarballs. You may want to install Git: brew install git Warning: No developer tools installed. Install the Command Line Tools: xcode-select --install

そのた情報が必要であればおしらせください。よろしくお願いします。

$which - a git /usr/local/bin/git $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/TomohisaSutani/.rvm/bin

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

  • brew doctorの出力にあるようにCommand Line Toolsだけインストールする

bash

1xcode-select --install
  • もしくはXcodeをインストールする

お好みでどうぞ。

bash

1$ brew config 2HOMEBREW_VERSION: 1.4.1 3ORIGIN: https://github.com/Homebrew/brew 4HEAD: b4d43e950fd45c24e48d6ebfd3013357abcd21a9 5Last commit: 10 days ago 6Core tap ORIGIN: https://github.com/Homebrew/homebrew-core 7Core tap HEAD: 4b0b2f038975925abbda8e0bbd9d27c899c697e4 8Core tap last commit: 6 minutes ago 9HOMEBREW_PREFIX: /usr/local 10CPU: octa-core 64-bit haswell 11Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby 12Clang: 9.0 build 900 13Git: 2.14.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git 14Curl: 7.54.0 => /usr/bin/curl 15Perl: /usr/bin/perl 16Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/bin/python2.7 17Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby 18Java: 1.8.0_121 19macOS: 10.12.6-x86_64 20Xcode: 9.2 21CLT: 9.2.0.0.1.1510905681 22X11: N/A

投稿2017/12/26 08:22

izkn

総合スコア1698

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

自己解決

xcodeをインストールするとできました。
エラー両方とも解決しました。

投稿2017/12/26 08:21

tomo39-.

総合スコア27

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問