Birisi aşağıdakilere çözüm önerebilir mi?Homebrew: depo veritabanına nesne eklemek için yeterli izin yok .git/object
Git ile bir şeyler çalıştırarak kolay bir çıkış yolu olmalı.
$ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press ENTER to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Counting objects: 142460, done.
remote: Compressing objects: 100% (49574/49574), done.
remote: Total 142460 (delta 97359), reused 136688 (delta 91829)
Receiving objects: 100% (142460/142460), 33.23 MiB | 1.57 MiB/s, done.
Resolving deltas: 100% (97359/97359), done.
From https://github.com/mxcl/homebrew
* [new branch] master -> origin/master
HEAD is now at 8cb0f87 brew-test-bot: fix testing job tag numbering.
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help
$ brew doctor
Warning: Your file-system on/appears to be CaSe SeNsItIvE.
Homebrew is less tested with that - don't worry but please report issues.
$ brew update
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
Error: Failed to update tap: homebrew/science
Already up-to-date.
$ brew untap homebrew/science
Error: No such tap!
$
Genelde bu, dosya izinlerinizin yazmaya çalıştığı dizin için karışıklık yarattığı anlamına gelir. Yaptığın zaman yanlış bir şey olup olmadığını kontrol et. –
İlk satırda rm -rf /usr/local/.git yapıyorum, bu yüzden her şey ikinci satırdaki sıfırdan oluşturulur. İzinleri inceledim, ancak bir sorunla ilgili hiçbir şey bulamıyorum. – MightyMouse
brew güncellemesi aynı zamanda/usr/local/Library/Taps/*/dizininde bulunan git depolarını da güncelleyebilir. (//This//////////////////////////////////////////////// Oradaki izinleri kontrol et. Demlemek temizlemenin bunu temizlediğinden emin değilim. –