zoukankan      html  css  js  c++  java
  • Linux---man中文配置

    一、配置环境:


      1)软件包: man-pages-zh_CN-1.5.tar.gz
      2)下载地址:http://down1.chinaunix.net/distfiles/man-pages-zh_CN-1.5.tar.gz  


    二、汉化前

    [root@te]# man ls 
    LS(1)      User Commands         LS(1)   NAME 
                 ls - list directory contents  
    SYNOPSIS 
                 ls [OPTION]... [FILE]...  
    DESCRIPTION 
                 List    information    about    the FILEs (the current directory by default).    Sort entries alphabetically if none of               -cftuvSUX nor --sort.  
                 Mandatory arguments to long options are mandatory for short options too.  
                 -a, --all 
                                do not ignore entries starting with .  
                 -A, --almost-all 
                                do not list implied . and .. 

    三、汉化步骤:

      1、安装之前,运行locale命令来查看自己的语言环境是什么,主要有影响的是LC_ALL,LC_CTYPE和LANG变量的值。命令如下:

    [root@localhost ~]# locale
    LANG=zh_CN.UTF-8
    LC_CTYPE="zh_CN.UTF-8"
    LC_NUMERIC="zh_CN.UTF-8"
    LC_TIME="zh_CN.UTF-8"
    LC_COLLATE="zh_CN.UTF-8"
    LC_MONETARY="zh_CN.UTF-8"
    LC_MESSAGES="zh_CN.UTF-8"
    LC_PAPER="zh_CN.UTF-8"
    LC_NAME="zh_CN.UTF-8"
    LC_ADDRESS="zh_CN.UTF-8"
    LC_TELEPHONE="zh_CN.UTF-8"
    LC_MEASUREMENT="zh_CN.UTF-8"
    LC_IDENTIFICATION="zh_CN.UTF-8"
    LC_ALL=


      1、下载汉化版本:wget http://down1.chinaunix.net/distfiles/man-pages-zh_CN-1.5.tar.gz 

      2、解压:tar zxvf man-pages-zh_CN-1.5.tar.gz 

      3、执行命令:make u8 && make install-u8 (如果语言环境是zh_CN.UTF-8,可以运行make u8 && make install-u8;如果语言环境是GB2312,GBK或者GB18030,可以运行make gb && make install-gb;这里笔者的应用环境是zh_CN.UTF-8,运行make u8 && make install-u8即可汉化man手册页)
      4、执行命令:man man,验收成果

  • 相关阅读:
    我的canvasnode v0.1完成了
    我们的scrum实践
    好文转贴(6)——代码永远是罪魁祸首吗?
    关于“产品驱动”和“技术驱动”
    居然获“最受读者喜爱的IT图书作译者奖”了
    重写代码 多重登录
    图片验证码接口
    syl/settings.py中配置注册 权限认证
    码云 上传与克隆
    短信验证接口
  • 原文地址:https://www.cnblogs.com/tianzhiyi/p/5282916.html
Copyright © 2011-2022 走看看