Error while loading shared libraries – Mandriva

Problem
After installing a package and trying to run it in Mandriva 2010 64, you get errors about missing libraries, like:

error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

Solution
Use the urpmf command to find the packages that contain the missing libraries like :

urpmf libasound.so.2

and then when you get something like the following:

lib64alsa2:/usr/lib64/libasound.so.2
lib64alsa2:/usr/lib64/libasound.so.2.0.0
lib64alsa2:/usr/lib64/libasound.so.2
lib64alsa2:/usr/lib64/libasound.so.2.0.0
libalsa2:/usr/lib/libasound.so.2
libalsa2:/usr/lib/libasound.so.2.0.0
libalsa2:/usr/lib/libasound.so.2
libalsa2:/usr/lib/libasound.so.2.0.0

install the missing packages with:

sudo urpmi lib64alsa2
or/and
sudo urpmi libalsa2