$ git status
On branch master
...
dyld: Library not loaded: /usr/local/Cellar/gettext/0.19.4/lib/libintl.8.dylib
Referenced from: /usr/local/bin/gettext
Reason: image not found
dyld: Library not loaded: /usr/local/Cellar/gettext/0.19.4/lib/libintl.8.dylib
Referenced from: /usr/local/bin/envsubst
Reason: image not found
dyld: Library not loaded: /usr/local/Cellar/gettext/0.19.4/lib/libintl.8.dylib
Referenced from: /usr/local/bin/envsubst
Reason: image not found
/usr/local/bin/gettext.sh: line 87: 10800 Abort trap: 6 envsubst "$1"
dyld: Library not loaded: /usr/local/Cellar/gettext/0.19.4/lib/libintl.8.dylib
Referenced from: /usr/local/bin/gettext
Reason: image not found
dyld: Library not loaded: /usr/local/Cellar/gettext/0.19.4/lib/libintl.8.dylib
Referenced from: /usr/local/bin/envsubst
Reason: image not found
dyld: Library not loaded: /usr/local/Cellar/gettext/0.19.4/lib/libintl.8.dylib
Referenced from: /usr/local/bin/envsubst
Reason: image not found
/usr/local/bin/gettext.sh: line 87: 10841 Abort trap: 6 envsubst "$1"
nothing to commit, working tree clean
$ ls /usr/local/Cellar/gettext
0.19.8.1
It seems my Git installed by Homebrew wants to access /usr/local/Cellar/gettext/0.19.4 which does not exist?
I have tried
git reinstall git
in vain.
Assuming I just need to install gettext of the version 0.19.4, I've tried to find methods to install a Homebrew "formula" of a specific version, but all solutions found on the web have proved to be outdated and not working.