man paths in OSX
After upgrading to Leopard, I've found a weird thing about it, and after discussing that with some friends, seems like more people is having the same problem.
One of the first packages of software I've installed on the new OSX version is MacPorts (something very similar to those ports collection on FreeBSD or OpenBSD). After installed some packages using that, I noticed that I couldn't accesss the man pages of those packages, nor even I could access port man page itself.
The ugly error I got evertime was something like:
snowball:~ wu$ man port Cannot open the message catalog "man" for locale "es_ES.UTF-8" (NLSPATH="<none>") No manual entry for port snowball:~ wu$ man psql Cannot open the message catalog "man" for locale "es_ES.UTF-8" (NLSPATH="<none>") No manual entry for psql snowball:~ wu$
After some digging, I got to the point that there was some problem with the MANPATH environment variable, seems like the MacPorts man path wasn't there:
snowball:~ wu$ manpath /usr/share/man:/usr/X11/man snowball:~ wu$
(That wasn't a matter in Tiger)
So, to solve the problem it was as easy as adding two lines to my ~/.profile:
MANPATH="/opt/local/man:${MANPATH}" export MANPATH
After that, opening new Terminals result in the correct path added and me being able to access those man pages:
snowball:~ wu$ manpath /opt/local/man:/usr/share/man:/usr/X11/man snowball:~ wu$
PORT(1) BSD General Commands Manual PORT(1) NAME port -- operate on individual or multiple Mac ports
That one was easy but, at first, that message about the catalog and the es_ES.UTF8 locale made me think about something harder to find.