Well, there is a certain amount of slotting/versioning that is done with the shared libraries with those numbers so other software that depends on the library can tell if the library is a compatible version. And, if your system is up-to-date with all the linking done, you should have the links set for you by the installer, the installing package or whatever utility your distribution has for checking the sanity of your libraries. (In Gentoo, it's '
revdep-rebuild'.)
And for the links, when everything is set, I end up with stuff like:
Code:
tech7 ~ # ls -l /lib/libbz2.so*
lrwxrwxrwx 1 root root 15 Jan 20 2009 /lib/libbz2.so -> libbz2.so.1.0.5
lrwxrwxrwx 1 root root 15 Jan 20 2009 /lib/libbz2.so.1 -> libbz2.so.1.0.5
lrwxrwxrwx 1 root root 15 Jan 20 2009 /lib/libbz2.so.1.0 -> libbz2.so.1.0.5
-rwxr-xr-x 1 root root 66736 Jan 20 2009 /lib/libbz2.so.1.0.5
tech7 ~ #
HTH.