sierra not mac found macos homebrew

macos - not - No se puede actualizar brew en MAC OS X el capitan y sigue apareciendo un error de carga con `require`



homebrew (1)

No deberías usar sudo con Homebrew. Primero ejecute lo siguiente para asegurarse de que posee todo en /usr/local :

sudo chown -R $(whoami):admin /usr/local

Luego restablezca su repositorio Homebrew a un estado limpio:

cd /usr/local && git fetch && git reset --hard origin/master

Debería solucionar tus problemas.

(reemplace /usr/local con $(brew --prefix) si instaló Homebrew en otro lugar)

No estoy seguro de por qué sucede esto, pero no puedo actualizar brew en mi MAC OS X El Capitan. Yo si:

brew update

y consiguió:

warning: unable to unlink CONTRIBUTING.md: Permission denied warning: unable to unlink SUPPORTERS.md: Permission denied fatal: cannot create directory at ''.github'': Permission denied

para repasar ese problema, sudé el comando anterior pero obtuve más problemas:

sudo brew update Password: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'': cannot load such file -- mach (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `<top (required)>'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /usr/local/Library/Homebrew/global.rb:3:in `<top (required)>'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /usr/local/Library/brew.rb:16:in `<main>''

ahora, cada vez que hago la instalación, obtengo:

brew update /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'': cannot load such file -- mach (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `<top (required)>'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /usr/local/Library/Homebrew/global.rb:3:in `<top (required)>'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'' from /usr/local/Library/brew.rb:16:in `<main>''

de hecho, parece que cada vez que hago algo, como escribir brew , aparece el mismo mensaje. ¿Alguien sabe cómo arreglar esto?