On 02/13/2014 09:50 PM, Ken Moffat wrote: > On my desktops, I use a script to run updatedb, followed by mandb, > every day or so. This runs from root's fcrontab, so it is one of > the first things to get run on a new system. Last night it failed > with a message that it could not write to > /var/cache/man/something/else - no such file or directory. After > running mkdir /var/cache/man I was able to run the script from the > commandline. > > I haven't needed to create this directory before, and the only > place it shows up in my previous desktop build was very late in > the build, possibly when mandb was running in the background. > > ĸen >
mandb seems to work here if /var/cache/man directory is not present. # rm -rf /var/cache/man/ # mandb Processing manual pages under /usr/share/man... Updating index cache for path `/usr/share/man/man3'. Wait...mandb: can't open /usr/share/man/man3/wayland-util.h.3: No such file or directory ### Several similar lines after this one ### (Wayland man pages generation isn't very good it seems.) mandb: warning: /usr/share/man/man3/pcredemo.3: whatis parse for pcredemo(3) failed Updating index cache for path `/usr/share/man/man8'. Wait...mandb: warning: /usr/share/man/man8/saslauthd.8: whatis parse for saslauthd(8) failed Updating index cache for path `/usr/share/man/man7'. Wait...mandb: warning: /usr/share/man/man7/gfdl.7: whatis parse for gfdl(7) failed Updating index cache for path `/usr/share/man/man1'. Wait...mandb: can't open /usr/share/man/man/mysqltest.1: No such file or directory mandb: warning: /usr/share/man/man1/mysqltest_embedded.1: bad symlink or ROFF `.so' request mandb: can't open /usr/share/man/man/mysql_client_test.1: No such file or directory mandb: warning: /usr/share/man/man1/mysql_client_test_embedded.1: bad symlink or ROFF `.so' request Updating index cache for path `/usr/share/man/man2'. Wait...done. Checking for stray cats under /usr/share/man... Checking for stray cats under /var/cache/man... Processing manual pages under /usr/local/share/man... Updating index cache for path `/usr/local/share/man/man1'. Wait...mandb: warning: /usr/local/share/man/man1/dv2dt.man1.pdf: ignoring bogus filename ### Several similar lines after this one ### (LaTeX binary install with symlinks to /usr/local) Checking for stray cats under /usr/local/share/man... Checking for stray cats under /var/cache/man/local... 17 man subdirectories contained newer manual pages. 14742 manual pages were added. 0 stray cats were added. 0 old database entries were purged. # ls -l /var/cache/man/ total 2196 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat1 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat2 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat3 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat4 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat5 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat6 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat7 drwxr-xr-x 2 root root 4096 Feb 13 22:46 cat8 -rw-r--r-- 1 root root 2207744 Feb 13 22:48 index.db drwxr-xr-x 10 root root 4096 Feb 13 22:48 local -- Note: My last name is not Krejzi. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page