zoukankan      html  css  js  c++  java
  • (转载)Gentoo中文man乱码

    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

  • 相关阅读:
    Codeforces Round #439 (Div. 2)
    Money Systems
    Stamps
    inflate
    多重背包问题
    AIM Tech Round 4 (Div. 2)
    September Challenge 2017
    树的重心
    百度之星2017初赛A
    树上的最大独立集
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/2277802.html
Copyright © 2011-2022 走看看