====== Search the PATH for any missing libraries ====== The following command will search for all the binaries located in your <color blue>''$PATH''</color> and tell you if any program is missing some shared libraries (.so) to be able to run correctly. I often use it after a distro upgrade: <code console> # find $(echo $PATH | tr : '\n' | sort -u | tr '\n' ' ') -mindepth 1 -maxdepth 1 -type f -perm /111 -print0 | xargs -r0 ldd | egrep 'not found|:$' | grep -B1 'not found' </code> Output example: <code console> /usr/bin/gnucash-bin: libgnc-qof.so.1 => not found libgncmod-engine.so => not found libgnc-gnome.so.0 => not found libgncmod-ledger-core.so => not found libgncmod-register-gnome.so => not found libgncmod-register-core.so => not found libgncmod-report-gnome.so => not found libgncmod-report-system.so => not found libgncmod-gnome-search.so => not found libgncmod-gnome-utils.so => not found libgnc-backend-file-utils.so.0 => not found libgncmod-app-utils.so => not found libgnc-module.so.0 => not found libgncmod-calculation.so => not found libgnc-core-utils.so.0 => not found -- /usr/NX/bin/nxservice: libXcomp.so.3 => not found libXcompsh.so.3 => not found -- /usr/NX/bin/nxssh: libXcomp.so.3 => not found -- /usr/NX/bin/nxagent: libXcomp.so.3 => not found libXcompext.so.3 => not found libXcompshad.so.3 => not found </code> Hmm, NX puts its libs in <color green>''/usr/NX/lib''</color>, so this is normal (it probably uses <color blue>''LD_LIBRARY_PATH''</color>). But for <color red>''gnucash''</color>, it seems like I have some things to fix :) ~~META:date created = 2006-11-03 21:51:00~~