osx - Could not symlink share/git-core/contrib /usr/local/share/git-core is not writable -
i've tried , used suggestion repairing, on uninstalling everything, reinstalling, etc. no solution works. i'm stuck , need find solution! in advance, christoph
macbook-2:~ myusername$ brew install git warning: git-2.1.3 installed, it's not linked macbook-2:~ myusername$ brew destroy git error: unknown command: destroy macbook-2:~ myusername$ brew uninstall git uninstalling /usr/local/cellar/git/2.1.3... macbook-2:~ myusername$ brew install git ==> downloading https://downloads.sf.net/project/machomebrew/bottles/git- 2.1.3.yosemite.bottle.tar.gz downloaded: /library/caches/homebrew/git-2.1.3.yosemite.bottle.tar.gz ==> pouring git-2.1.3.yosemite.bottle.tar.gz ==> caveats os x keychain credential helper has been installed to: /usr/local/bin/git-credential-osxkeychain 'contrib' directory has been installed to: /usr/local/share/git-core/contrib bash completion has been installed to: /usr/local/etc/bash_completion.d zsh completion has been installed to: /usr/local/share/zsh/site-functions error: `brew link` step did not complete formula built, not symlinked /usr/local not symlink share/git-core/contrib /usr/local/share/git-core not writable. can try again using: brew link git ==> summary 🍺 /usr/local/cellar/git/2.1.3: 1342 files, 32m macbook-2:~ myusername$ brew link git linking /usr/local/cellar/git/2.1.3... error: not symlink share/git-core/contrib /usr/local/share/git-core not writable.
this error related permissions.
try
sudo chown -r $(whoami) /usr/local/share/
or, if need on git-core path,
sudo chown -r $(whoami) /usr/local/share/git-core
might enough.
then run
brew link git
again.
Comments
Post a Comment