我已经安装了将/opt/local下的所有内容的mac-ports。 相应的手册页在/opt/local/man 。 我将下面一行添加到/private/etc/man.conf代表port的mansearchpath:
MANPATH /opt/local/man/man1
但是,当我自己援引man时:
> man port
我得到以下错误:
No manual entry for port
这是为man添加新searchpath的正确方法吗?
你非常接近。 你应该添加这个:
MANPATH /opt/local/man/
没有/ man1附加到它。 在/private/etc/man.conf中,有一行评论说你只需要取消注释:
# Uncomment if you want to include one of these by default # # MANPATH /opt/*/man # MANPATH /usr/lib/*/man
/ opt / * / man是你的人。
你必须指向根,所以:
MANPATH=/opt/local/man man port
应该pipe用。
您应该添加任何额外的path到/etc/manpath.config,以便他们为每个人工作。