Home > System Tutorial > LINUX > body text

Detailed explanation of using Chinese man for Centos7.2

PHPz
Release: 2024-01-06 23:18:04
forward
1100 people have browsed it

First modify the system configuration file /etc/locale.conf (the corresponding file for lower versions is /etc/sysconfig/i18n) with the content LANG="zh_CN.UTF-8" Save and exit, and restart Linux.

Click to download the Chinese man source code package (If the link fails, you can download the attachment file)

Upload the decompressed manpages-zh-1.5.2.tar.bz2 to the server.

Unzip:

gz unpacking command: tar -zxvf

bz2 unpacking command: tar -jxvf

[root@VM_13_60_centos tmp]# tar -jxvf manpages-zh-1.5.2.tar.bz2

manpages-zh-1.5.2/

manpages-zh-1.5.2/missing

manpages-zh-1.5.2/COPYING

manpages-zh-1.5.2/Makefile.in

manpages-zh-1.5.2/ChangeLog

manpages-zh-1.5.2/src/

manpages-zh-1.5.2/src/mann/

...

View the command execution result through $?, if 0 is successful

#echo $? (0 success)

[root@VM_13_60_centos tmp]# echo $?

0

Enter the manpages-zh-1.5.2 directory and execute ./configure --prefix=/usr/local/zhman --disable-zhtw

[root@VM_13_60_centos tmp]# cd /tmp/manpages-zh-1.5.2/

[root@VM_13_60_centos manpages-zh-1.5.2]# ls

aclocal.m4 AUTHORS ChangeLog configure configure.in COPYING DOCS INSTALL install-sh Makefile.am Makefile.in missing NEWS README src utils

[root@VM_13_60_centos manpages-zh-1.5.2]# ./configure --prefix=/usr/local/zhman --disable-zhtw

#make && make install (please use yum or apt if you have not installed the make tool)

Create .bash_profile file in home directory (paste alias cman='man -M /usr/local/zhman/share/man/zh_CN' and save)

#source .bash_profile (in order to make the alias just added take effect)

Test Chinese man:

# cman ln

Detailed explanation of using Chinese man for Centos7.2

The above is the detailed content of Detailed explanation of using Chinese man for Centos7.2. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template