有關CentOS6的man報錯

2021-06-01 23:09:34 字數 2046 閱讀 2348

1)對於找不到的命令,man會報錯:

[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)用strace看了一下,發現在最後:

...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 "..., 112cannot 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)將en下的man複製過來,先湊合用用:

cp /usr/share/locale/en/lc_messages/man /usr/share/locale/zh/lc_messages/

4)不報錯了:

[jing@centos locale]$ man abc

no manual entry for abc

[jing@centos locale]$ 

有關CentOS6的man報錯

摘自 一刀流的專欄 再加上自己的一些做法。1 對於找不到的命令,man會報錯 jing centos locale man abc cannot open the message catalog man for locale zh cn.utf 8 nlspath usr share locale ...

CentOS6 中文man手冊使用說明

中文 man對英文不是很好的朋友來說 可以起到一點幫助作用。當前中文man githup維護的人 lidaobing 環境 centos 6.5 核心 2.6.32 642.el6.x86 64 官方 這個 目前已經停止服務了。這個是原始碼的 wget 操作步驟如下 tar zxvf manpage...

CentOS 6啟動流程

載入bios的硬體資訊,獲取第乙個啟動裝置 讀取第乙個啟動裝置mbr的引導引導程式 grub 的啟動資訊 載入核心作業系統的核心資訊,核心開始解壓縮,並嘗試驅動所有的硬體裝置 核心執行init程式,並獲取預設的執行資訊 init程式執行 etc rc.d rc.sysinit檔案,重新掛載根檔案系統...