Installing Gettext

Installation of Gettext

Install Gettext by running the following commands:

./configure --disable-nls &&
make -C lib &&
make -C intl &&
make -C src LDFLAGS=-all-static msgfmt &&
cp src/msgfmt $LFS/usr/bin


The gettext package contains the gettext, gettextize, msgcmp, msgcomm, msgfmt, msgmerge, msgunfmt and xgettext programs.



The gettext package is used for internationalization (also known as i18n) and for localization (also known as l10n). Programs can be compiled with Native Language Support (NLS) which enable them to output messages in the users native language rather than in the default English language.