manpath

Shawn Protsman protsman at mac.com
Mon Oct 27 06:30:27 PDT 2008


On Oct 27, 2008, at 5:10 AM, Vincent Lefevre wrote:

> On 2008-10-27 07:29:34 +0100, Rainer Müller wrote:
>> Shawn Protsman wrote:
>>> To my surprise I got no entry found when I did a 'man port'. What is
>>> the recommended method to add port manpages to the path?
>>>
>>> Create a '/etc/paths.d/macports'?
>>>
>>> Or add to .profile:
>>>
>>> export MANPATH=/opt/local/share/man:$MANPATH
>>
>> The latter. Using paths.d would append the MANPATH at the end, but
>> usually you want to add new items in front of the system provided  
>> ones.
>
> Normally you don't even need to do anything. Having /opt/local/bin
> in $path should be sufficient.
>
> FYI, my $MANPATH is empty. This is often better this way, otherwise
> there is the risk of having inconsistencies when $PATH has several
> programs of the same name (each one having its own man page).

My $MANPATH was also empty. But I was unable to pull up any of the man  
pages from ports. Adding a MANPATH to my .bashrc resolved the issue. 


More information about the macports-users mailing list