Skip to content


Subversion checkout URL

You can clone with
Download ZIP


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

ngocdaothanh opened this Issue · 3 comments

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
@granowski granowski referenced this issue in roblillack/monoberry

Building mono berry on a Mac Mini #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.