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

Closed
ngocdaothanh opened this Issue Sep 14, 2011 · 3 comments

Projects

None yet

3 participants

@ngocdaothanh

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

@Sharpie

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/0.18.1.1/lib
    CPPFLAGS -I/usr/local/Cellar/gettext/0.18.1.1/include
@ngocdaothanh

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?

@jacknagel

man brew is a good place to start, and the wiki: https://github.com/mxcl/homebrew/wiki

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

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.