urxvt 使用感受
e4rat, just a notice.

(转载)Gentoo中文man乱码

tubo posted @ 2014年9月03日 00:08 in 未分类 , 677 阅读

Gentoo中文man乱码

如果Gentoo Linux 系统是中文 locale 的话,查看 man,会遇到很多乱码。

网上查了一下,可能是 app-i18n/man-pages-zh_CN这个包的问题

解决的办法是安装支持 utf8 的 groff.
----------------------------------------------------------

方法一

在 gentoo-china-overlay 安装 groff-utf8

关于gentoo-china-overlay的用法参见下面链接的最后部分。

http://latex.yo2.cn/articles/install-gentoo-linux.html

-------------------------------------------------

方法二

下载安装 groff-utf8

$ wget http://lists.gnu.org/archive/html/groff/2005-07/bineYgga7Cm9p.bin -O groff-utf8.tar.gz
$ tar zxf groff-utf8.tar.gz
$ cd groff-utf8 (http://latex.yo2.cn)
$ sudo make install PREFIX=/usr/local

  再修改/etc/man.conf 的兩個配置,來使用新安裝的版本:
# cat /etc/man.conf wrote:

TROFF /usr/local/bin/groff-utf8 -Tutf8 -mandoc
NROFF /usr/local/bin/groff-utf8 -Tutf8 -mandoc

-------------------------------------------------------------------

方法三

去掉 app-i18n/man-pages-zh_CN 这个包, 以后中能看英文的man
在 /etc/portage/package.use 文件中写入 sys-apps/man-pages -linguas_zh_CN
emerge -uDN1 man-pages
emerge --depclean

参考:

http://www.oceanboo.cn/read.php/272.htm

http://www.linuxsir.org/bbs/archive/index.php/t-246700.html

 

 

from http://latex.yo2.cn/articles/gentoo-man-cn.html


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter