Hi Steen,

WFM - thanks!

Cheers,

Loris

Steen Lysgaard <[email protected]> writes:

> Hi Loris,
>
> to deal with this I have resorted to doing:
>
>   unset MANPATH
>
> After loading many Easybuild modules.
>
> This works since man will find the manpages for any program that has
> the manpages relative to the executable like this: ../share/man.
> E.g. for executable P located in $HOME/.local/bin/P the manpages will
> be located at $HOME/.local/share/man/ (See:
> https://askubuntu.com/a/1378260)
>
> Of course, this is not a viable solution for software that is not laid out in 
> this fashion.
>
> Best regards,
> Steen
> ________________________________________
> From: [email protected]
> <[email protected]> on behalf of Loris Bennett
> <[email protected]>
> Sent: Tuesday, February 7, 2023 8:58:13 AM
> To: easybuild
> Subject: [easybuild] [man v2.6.3] manpath list too long
>
> Hi,
>
> On CentOS 7.9, the version of 'man' is 2.6.3.  This version seems to
> have a limit of 50 directories for MANPATH.  If this is exceeded, which
> sometimes happens with EasyBuild, 'man' will produce the error
>
>   man: manpath list too long
>
> Versions 2.9.3 (AlmaLinux 9.1) and 2.9.4 (Debian 11) don't have this
> limitation (or the limit is higher).
>
> Often (usually?) users are mainly interested in the man page for the
> program they have loaded explicitly via 'module add' and less in that
> for, say, 'binutils'.
>
> Does anyone know of a workaround for this issue?
>
> Cheers,
>
> Loris
>
> --
> Dr. Loris Bennett (Herr/Mr)
> ZEDAT, Freie Universität Berlin
-- 
Dr. Loris Bennett (Herr/Mr)
ZEDAT, Freie Universität Berlin

Reply via email to