Gettext 软件包包含国际化和本地化工具,它们允许程序在编译时加入 NLS (本地语言支持) 功能,使它们能够以用户的本地语言输出消息。

安装 Gettext

对于我们的临时工具,只要安装 Gettext 中的三个程序即可。

解压软件包:

cd /sources
tar xf gettext-0.21.tar.xz
cd gettext-0.21

编译 Gettext:

time { ./configure --disable-shared && make;}

Linux From Scratch(LFS11.0)进入 Chroot 构建临时工具 - Gettext-0.21_linux

安装 msgfmt,msgmerge,以及 xgettext 这三个程序:

cp -v gettext-tools/src/{msgfmt,msgmerge,xgettext} /usr/bin

安装完成后清理工作:

cd ..
rm -rf gettext-0.21


本次分享到此结束啦~

公众号:Lucifer三思而后行