brew install gettext, should i force link it?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle
--
Chapters
00:00 Brew Install Gettext, Should I Force Link It?
00:10 Accepted Answer Score 32
00:30 Answer 2 Score 0
01:07 Thank you
--
Full question
https://superuser.com/questions/747324/b...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#homebrew #django #gettext
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle
--
Chapters
00:00 Brew Install Gettext, Should I Force Link It?
00:10 Accepted Answer Score 32
00:30 Answer 2 Score 0
01:07 Thank you
--
Full question
https://superuser.com/questions/747324/b...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#homebrew #django #gettext
#avk47
ACCEPTED ANSWER
Score 32
same problem here, just run
brew link gettext --force
and
manage.py compilemessages
and everything working fine. you can always
brew unlink gettext
if you have problems and revert back to previous state
ANSWER 2
Score 0
I tried running this brew link gettext --force
, but I was getting:
$ brew install gettext
Warning: gettext 0.20.2 is already installed and up-to-date
To reinstall 0.20.2, run `brew reinstall gettext`
$ brew link gettext --force
Warning: Refusing to link macOS provided/shadowed software: gettext
If you need to have gettext first in your PATH run:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
For compilers to find gettext you may need to set:
export LDFLAGS="-L/usr/local/opt/gettext/lib"
export CPPFLAGS="-I/usr/local/opt/gettext/include"
Then, I just added it to the system path with:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
Related:
- https://apple.stackexchange.com/questions/299048/can-not-use-the-gettext-which-is-installed-by-brew
- https://stackoverflow.com/questions/38670295/homebrew-refusing-to-link-openssl
- https://stackoverflow.com/questions/14940383/how-to-install-gettext-on-macos-x
- https://stackoverflow.com/questions/29422345/installed-just-not-linked
- https://stackoverflow.com/questions/59644349/msgmerge-on-macos-catalina