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

前端之家收集整理的这篇文章主要介绍了Cannot open the message catalog "man" for locale "zh_CN.UTF-8"前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

vagrant安装的最小化的centos,偶然发现没办法使用man查看命令帮助。

1.查看xargs帮助信息

  1. $ man xargs
  2. -bash: man: command not found

这个很好理解,没装嘛,好吧,yum

2.先看一下man在哪个包里

  1. # yum provides man
  2. man-1.6f-32.el6.x86_64 : A set of documentation tools: man,apropos and whatis
  3. Repo : base

3.安装man

  1. # yum install -y man

4.再看看帮助

  1. # man xargs
  2. Cannot open the message catalog "man" for locale "zh_CN.UTF-8"
  3. (NLSPATH="/usr/share/locale/%l/LC_MESSAGES/%N")

5.网上搜了半天,看到一堆莫名其妙的东西,此处略去俩小时。。。。

6.虽然yum可以处理依赖,等等,依赖,是不是缺少什么东西?各种查找

  1. # yum search man|grep ^man
  2. man.x86_64 : A set of documentation tools: man,apropos and whatis
  3. man-pages.noarch : Man (manual) pages from the Linux Documentation Project
  4. man-pages-cs.noarch : Czech man pages from the Linux Documentation Project
  5. man-pages-es.noarch : Spanish man pages from the Linux Documentation Project
  6. man-pages-es-extra.noarch : Extra manual pages - Spanish versions
  7. man-pages-fr.noarch : French version of the Linux man-pages
  8. man-pages-it.noarch : Italian man (manual) pages from the Linux Documentation
  9. man-pages-ja.noarch : Japanese man (manual) pages from the Japanese Manual
  10. man-pages-ko.noarch : Korean(Hangul) Man(manual) Pages from the Korean Manpage
  11. man-pages-overrides.noarch : Complementary and updated manual pages
  12. man-pages-pl.noarch : Polish man pages from the Linux Documentation Project
  13. man-pages-ru.noarch : Russian man pages from the Linux Documentation Project
  14. man-pages-uk.noarch : Ukrainian man pages from the Linux Documentation Project
  15. man-pages-zh-CN.noarch : Chinese Man Pages from Chinese Man Pages Project

这是什么玩意?试试吧

  1. # yum install -y man-pages

ok.

7.既然有man-pages-zh-CN,安装看看。结果证明中文化后的帮助文档惨不忍睹,还是卸载算鸟。

总结:

yum的依赖管理不一定管用。

安装man的标准姿势是:

  1. yum install -y man man-pages

猜你在找的CentOS相关文章