Recently tried to use git on a Mac to push changes to a repository, and it's no longer working. It eventually led me to find other issues as well.
This is the result of git version
:
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
Referenced from: /usr/local/bin/git
Reason: image not found
zsh: abort git --version
Then I tried brew install git
:
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
Referenced from: /usr/local/bin/git
Reason: image not found
Running `brew update --preinstall`...
==> Homebrew has enabled anonymous aggregate formula and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
Referenced from: /usr/local/bin/git
Reason: image not found
Error: Command failed with SIGABRT (signal 6): git
Warning: git 2.34.1 is already installed and up-to-date.
To reinstall 2.34.1, run:
brew reinstall git
And when running brew reinstall git
:
==> Downloading https://ghcr.io/v2/homebrew/core/git/manifests/2.34.1
Already downloaded: /Users/hectorbardales/Library/Caches/Homebrew/downloads/2204d96aaa794aa4c0eb0d196b6eb24296243d67f3e13221da63ef109f6ee774--git-2.34.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/git/blobs/sha256:e3671284f82922871a0452d7d9f829a01757b96fc8
Already downloaded: /Users/hectorbardales/Library/Caches/Homebrew/downloads/e3ecb2e86aa74f77bb36ea2154eeed0dc030e8d847ba9e6ab24a6040dcc631ea--git--2.34.1.big_sur.bottle.tar.gz
==> Reinstalling git
==> Pouring git--2.34.1.big_sur.bottle.tar.gz
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
Subversion interoperability (git-svn) is now in the `git-svn` formula.
zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
==> Summary