[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: man/mandb errors



On Tue, Oct 07, 2003 at 09:37:19AM -0700, Paul Mackinney wrote:
> At the last update of the man package, I elected to install the new
> version of /etc/manpath config. The only customization I'd made was to
> add the man pages for my java installation, and I was OK with losing
> it. But now every time I run man, I get the following errors:
> 
> mandb: can't chmod /usr/java/j2sdk1.4.1_02/man/index.db: \
> Operation not permitted
> mandb: can't remove /usr/java/j2sdk1.4.1_02/man/index.db: \
> Permission denied
> mandb: warning: can't update index cache \
> /usr/java/j2sdk1.4.1_02/man/index.db: Permission denied
> mandb: No databases created.

That's a filed bug which I'll look at soon (I hope, time permitting).

> This is sort of understandable because the manpath command still shows
> the java man directory 
> 
> $ manpath
> /usr/java/j2sdk1.4.1_02/man:/usr/local/man:/usr/share/man:/usr/X11R6/man
> 
> But I don't understand why since manpath.config doesn't list it and my
> MANPATH variable is not set.

A default MANPATH is inferred from your PATH if it isn't explicitly set.

> I've run mandb (without errors) and read most of the man-related docs,
> but I don't understand what's going on. How can I get manpath to drop
> the java man directory?

As a workaround until the bug is fixed, you could set an explicit
MANPATH not including /usr/java/j2sdk1.4.1_02/man.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: