Open
Description
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).
Workaround from Steen Lysgaard:
Doing
unset MANPATH
after loading many Easybuild modules allows still allows manpages to
be found for any program that has the manpages relative to the
executable like this: ../share/man
.
Suggested solution from Alan O'Cais:
Add some functionality to eb to only set MANPATH
if the above structure is not respected.