How to install GNU gettext on MAC OSX
- Wget ftp://ftp.gnu.org/pub/gnu/gettext/gettext...t-0.12.1.tar.gz
- Untar file as tar -zxvf gettext-0.12.1.tar.gz
cdto the directory containing the package's source code and type./configureto configure the package for your system. If you're usingcshon an old version of System V, you might need to typesh ./configureinstead to preventcshfrom trying to executeconfigureitself.
Running
configuretakes awhile. While running, it prints some messages telling which features it is checking for.
- Type
maketo compile the package.- Optionally, type
make checkto run any self-tests that come with the package.- Type
make installto install the programs and any data files and documentation.- You can remove the program binaries and object files from the source code directory by typing
make clean. To also remove the files thatconfigurecreated (so you can compile the package for a different kind of computer), typemake distclean. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution.
There might be an issue when running step 4, do the following if you get the error and restart from step 4:
stpncpy.c:34: error: expected declaration specifiers or ‘...’ before numeric constant stpncpy.c:34: error: expected ‘)’ before ‘!=’ token stpncpy.c:34: error: expected ‘)’ before ‘?’ token make[4]: *** [stpncpy.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1
In the 34 line of .//gettext-tools/gnulib-lib/stpncpy.c:
Modify
__stnpcpy (char *dest, const char *src, size_t n)to__stpcpy (char *dest, const char *src, size_t n)