On Dec 24, 2011 7:44 PM, "Florian Philipp" <li...@binarywings.net> wrote: > > Am 24.12.2011 13:32, schrieb Pandu Poluan: > > > > On Dec 24, 2011 7:28 PM, "Pandu Poluan" <pa...@poluan.info > > <mailto:pa...@poluan.info>> wrote: > >> > >> > >> On Dec 24, 2011 7:15 PM, "Dale" <rdalek1...@gmail.com > > <mailto:rdalek1...@gmail.com>> wrote: > >> > > >> > Vishnupradeep wrote: > >> >> > >> >> man emerge > >> >> sh: /usr/bin/less: No such file or directory > >> >> Error executing formatting or display command. > >> >> System command (cd "/usr/share/man" && (echo ".ll 9.9i"; echo ".nr > > LL 9.9i"; echo ".pl 1100i"; /bin/bzip2 -c -d > > '/usr/share/man/man1/emerge.1.bz2'; echo ".\\\""; echo ".pl \n(nlu+10") > > | /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less) exited with > > status 127. > >> >> No manual entry for emerge > >> >> > >> >> What should i do ?? > >> >> > >> >> ---- > >> >> Linux Blog: http://xtreme-linux.blogspot.com/ > >> >> Fedora Blog: http://xtreme-fedora.blogspot.com/ > >> >> My Blog: http://sharedonweb.blogspot.com/ > >> >> > >> >> > >> > > >> > I would make sure less is installed. There have been some changes > > to something and some people are letting --depclean or friends remove > > less. It's a long story and there are other threads about it. Just > > check and see if less is installed and if it is not, emerge it and make > > sure it is added to the world file. > >> > > >> > >> In my case, since I'm now using vimpager, I just make a symlink to it: > >> > >> ln -s $(which vimpager) /usr/local/bin/less > >> > >> ... then I purposefully unmerged less :-) > >> > > > > Meh, forgot one very important thing: > > > > echo "MANPAGER=\"$(which vimmanpager)\"" > /etc/env.d/99manpager > > env-update > > source /etc/profile > > > > Rgds, > > > > man honors the PAGER environment variable. You should set this in > /etc/env.d/ instead of symlinking from /usr/local/bin. If you encounter > an application that calls less directly, you should file a bug. >
If man uses vimpager, it strips out the coloring. vimmanpager activates the necessary incantations to make man output colorful. That's why I specify additional MANPAGER in env. Rgds,