Linux finding missing dependent so files
Posted in Technical on February 14th, 2012 by iyoung – Be the first to commentHave you ever had the issue where you try to launch an application in Linux and you’re greeted with something like “error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory” Only to then find out there is no package in yum or apt-get called libaudio or anything similar that could contain the so file.
There is a command for yum which helps track down the parent package which contains the missing dependency which is: -
yum provides */libaudio.so.2
This will return something like: -
[root@castlenix ~]# yum provides */libaudio.so.2
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.melbourne.co.uk
* extras: mirrors.melbourne.co.uk
* updates: mirrors.melbourne.co.uk
nas-libs-1.9.2-1.el6.x86_64 : Run-time libraries for NAS
Repo : atrpms
Matched from:
Filename : /usr/lib64/libaudio.so.2
So you then need to install the NAS package, so “yum install nas” and you will then have your dependent so file.

