No such keg: /usr/local/Cellar/git

后端 未结 3 1428
清歌不尽
清歌不尽 2020-12-04 17:48

I have been struggling with this for a few hours. I am on a Mac using Yosemite. I had homebrew installed, and was using git just fine. I tried doing $git add -i

3条回答
  •  不思量自难忘°
    2020-12-04 18:05

    Os X Mojave 10.14 has:

    Error: The Command Line Tools header package must be installed on Mojave.

    Solution. Go to

    /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

    location and install the package manually. And brew will start working and we can run:

    brew uninstall --force git
    brew cleanup --force -s git
    brew prune
    brew install git
    

提交回复
热议问题