manpath oddity [ issue with perl pages ? ]
Shawn Protsman
protsman at mac.com
Wed Aug 12 16:42:28 PDT 2009
On Aug 12, 2009, at 10:14 AM, Shawn Protsman wrote:
> The Apple installed manpages load before the macport manpages though
> my path displays otherwise.
>
> Example:
>
> ] echo $MANPATH
> /opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/share/man
>
> ] man perlcheat | grep 'perl v5.'
> perl v5.8.8 2006-01-07
> PERLCHEAT(1)
>
> ] man perl | grep 'perl v5.'
> perl v5.8.8
> 2006-01-07 PERL(1)
>
> I'm expecting the manpage from '/opt/local/share/man/man1p/' which
> contains 5.8.9.
>
> ] man /opt/local/share/man/man1p/perl.1pm | grep 'perl v5'
> perl v5.8.9 2007-11-17
> PERL(1pm)
>
> I can pull up the manpage for v5.10 (which is at /opt/local/share/
> man/man1/perl-5.10.1.gz):
>
> ] man perl-5.10 | grep 'perl v5.'
> perl v5.10.0
> 2007-12-18 PERL(1)
>
> So I'm a tad confused why Apple's pages are taking precedence.
What I've tried:
- Removed "export MANPATH=/opt/local/share/man:$MANPATH" from .profile.
- Added to /etc/manpaths.d/:
$ cat /etc/manpaths.d/macports
/opt/local/share/man
- Ran path_helper:
$ sudo /usr/libexec/path_helper -s
PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/Applications:/usr/
bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"; export PATH
MANPATH="/opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/share/man
"; export MANPATH
- Opened new terminal:
$ man perl | grep 'perl v5.'
perl v5.8.8
2006-01-07 PERL(1)
- I also tried adding the path to /etc/manpaths:
$ cat /etc/manpaths
/opt/local/share/man
/usr/share/man
/usr/local/share/man
It didn't change the result. Apple's man page [for perl items] still
takes precedence. Any ideas? I wonder if this has anything to do with
the man#p dir that the macports perl man page is stored in? "opt/local/
share/man/man{1,3}p"
Checking the manpages for other items installed by macports reveals
that this isn't global. It appears to be related only to the perl
pages noted above. Example:
] port installed | grep autoconf
autoconf @2.64_0 (active)
] man autoconf | grep "GNU Auto"
GNU Autoconf 2.64 July 2009
AUTOCONF(1)
That displays the manpage from macports and not Apple's autoconf man
page.
More information about the macports-users
mailing list