make 时nothing approprite 问题的解决办法

来源:互联网 发布:mysql 数据库合并 编辑:程序博客网 时间:2024/04/29 20:27

Why doesn't man -k (or apropos) work?

Before you can use man -k or apropos, you must create the whatis database. Just run the command

/usr/sbin/makewhatis

(it may take a minute to complete).

 

reason:

检索参数所查阅的资料库是位于Linux系统中一个名为whatis的资料库,这个资料库会搜集系统内所有指令的资讯,通常会在每天的午夜时分进行自动更新的作业,如果当你的主机可能没开启超过更新的时间时,该资料库便不会自动产生。此时,如果你又透过检索参数进行查阅时,会得到nothing appropriate这样的错误讯息回应。

这时候你可以透过root使用者执行makewhatis这个指令来手动建立此资料库,有了这个资料库才能使用whatis跟apropos这两个指令或是man的检索参数来查询指令。

原创粉丝点击