No xgettext, msgfmt, msgmerge etc. after installing gettext #7621

ngocdaothanh opened this Issue Sep 14, 2011 · 3 comments


None yet

3 participants


I am using Lion.
After "brew install gettext", gettext is successfully installed, but the binaries of xgettext, msgfmt, msgmerge etc. cannot be found.


Gettext is keg_only, in order to access the binaries you will need to add it's prefix onto your path or run brew link gettext:

==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:

    LDFLAGS  -L/usr/local/Cellar/gettext/
    CPPFLAGS -I/usr/local/Cellar/gettext/

Thanks a lot.
I'm new to brew, and don't know about "keg-only" and "brew link gettext".
Can you give some links so that I can learn more about them?


man brew is a good place to start, and the wiki:

@jacknagel jacknagel closed this Sep 14, 2011
@granowski granowski referenced this issue in roblillack/monoberry Jul 22, 2015

Building mono berry on a Mac Mini #9

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.