man paths in OSX
October 2021
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
This site is an effort to share some of the base knowledge I have gathered through all this years working with Linux, FreeBSD, OpenBSD, Python or Zope, among others. So, take a look around and I hope you will find the contents useful.
Recent Entries
Recent Comments
Recent Trackbacks
OpenBSD (9 items)
BSD (0 items)
FreeBSD (19 items)
Linux (3 items)
Security (3 items)
Python (22 items)
Zope (13 items)
Daily (144 items)
e-shell (9 items)
Hacks (14 items)
PostgreSQL (3 items)
OSX (8 items)
Nintendo DS (0 items)
enlightenment (0 items)
Apache (3 items)
Nintendo Wii (1 items)
Django (24 items)
Music (12 items)
Plone (7 items)
Varnish (0 items)
Lugo (2 items)
Sendmail (0 items)
europython (7 items)
Cherokee (1 items)
self (1 items)
Nature (1 items)
Hiking (0 items)
uwsgi (0 items)
nginx (0 items)
cycling (10 items)
Networking (1 items)
DNS (0 items)

Syndicate this site (XML)

RSS/RDF 0.91

20 marzo

man paths in OSX

this begin to seems the osx week...

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"

No manual entry for port
snowball:~ wu$ man psql
Cannot open the message catalog "man" for locale "es_ES.UTF-8"

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
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:

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
snowball:~ wu$
PORT(1)                   BSD General Commands Manual                  PORT(1)

     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.

Posted by wu at 10:36 | Comments (0) | Trackbacks (0)
<< Leopard desktop | Main | Firefox3 WTF! >>
There are no comments.
Please send trackback to:
There are no trackbacks.