Man error about CentOS6

Source: Internet
Author: User

1) For commands that cannot be found, man will report an error:

[Jing @ CentOS locale] $ man abc

Cannot open the message catalog "man" for locale "zh_CN.UTF-8"

(NLSPATH = "/usr/share/locale/% l/LC_MESSAGES/% N ")

 

 

No manual entry for abc

[Jing @ CentOS locale] $

 

 

 

 

2) After reading it with strace, we found that at the end:

...

Open ("/usr/share/locale/zh/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh_CN.UTF-8/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open( "/usr/share/locale/zh_CN.UTF-8/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh_CN.UTF-8/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open( "/usr/share/locale/zh_CN.UTF-8/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh/LC_MESSAGES/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Open ("/usr/share/locale/zh_CN.UTF-8/man", O_RDONLY) =-1 ENOENT (No such file or directory)

Write (2, "Cannot open the message catalog"..., 112 Cannot open the message catalog "man" for locale

 

 

Zh_CN.UTF-8"

(NLSPATH = "/usr/share/locale/% l/LC_MESSAGES/% N ")

 

 

) = 112

Write (2, "No manual entry for abc \ n", 24No manual entry for abc

) = 24

Exit_group (1) =?

 

 

 

 

3) copy the man under en for use first:

Cp/usr/share/locale/en/LC_MESSAGES/man/usr/share/locale/zh/LC_MESSAGES/

 

 

4) no error is reported:

[Jing @ CentOS locale] $ man abc

No manual entry for abc

[Jing @ CentOS locale] $

 

From a column of a single stream

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.