manpath

Vincent Lefevre vincent-opdarw at vinc17.org
Mon Oct 27 05:10:41 PDT 2008


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).

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the macports-users mailing list