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

安装 Gettext

解压软件包:

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

编译、检查并安装 Gettext:

time { ./configure --prefix=/usr    \
--disable-static \
--docdir=/usr/share/doc/gettext-0.21 && make && make check && make install;}

chmod -v 0755 /usr/lib/preloadable_libintl.so

Linux From Scratch(LFS11.0)构建 LFS 系统 - Gettext-0.21_linux

安装完成后清理工作:

cd ..
rm -rf gettext-0.21



本次分享到此结束啦~

关注公众号:Lucifer三思而后行