Last active
November 29, 2024 13:35
-
-
Save Manuel4131/67bc86b05e5a46a518d7 to your computer and use it in GitHub Desktop.
How to install GNU gettext on MAC OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 01. Wget ftp://ftp.gnu.org/pub/gnu/gettext/gettext...t-0.12.1.tar.gz | |
> 02. Untar file as tar -zxvf gettext-0.12.1.tar.gz | |
> 03. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type | |
`sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. | |
> Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. | |
> 04. Type `make' to compile the package. | |
> 05. Optionally, type `make check' to run any self-tests that come with the package. | |
> 06. Type `make install' to install the programs and any data files and documentation. | |
> 07. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make 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. | |
> (source)[1] | |
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) | |
> (source)[2] | |
[1]: http://www.bodhost.com/forum/linux-server-hosting/461-install-gettext.html | |
[2]: http://techshow.me/doc/276 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to the tar can be found on the GNU page (In case you're not able to wget just download from here manually)