While looking for a light weight way to run XChat all the time without having to disconnect every time I shutdown my laptop I discovered NoMachine NX which is easy to install, configure, and use. It provides remote X sessions and is fairly reasonable in terms of bandwidth. When installing the NX Client on one of the CentOS servers I was installing this on I ran into an error complaining about libaudiofile. Below I describe the error in more detail, how I located the package to install, and show the package being installed.
Failed Dependency Error Installing NX Client On CentOS Linux:
- [root@dev src]# rpm -Uhv nxclient-3.4.0-7.i386.rpm
- error: Failed dependencies:
- libaudiofile.so.0 is needed by nxclient-3.4.0-7.i386
- [root@dev src]#
I used he “yum whatprovides” as shown below to locate the package that provides the libaudiofile library.
Search Yum Repos For Package That Provides libaudiofile:
- [root@dev src]# yum whatprovides *libaudiofile.so.0*
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * addons: mirrors.adams.net
- * base: mirror.steadfast.net
- * extras: mirror.batblue.com
- * updates: mirror.team-cymru.org
- 1:audiofile-0.2.6-5.i386 : A library for accessing various audio file formats.
- Repo : base
- Matched from:
- Filename : /usr/lib/libaudiofile.so.0.0.2
- Other : libaudiofile.so.0
- Filename : /usr/lib/libaudiofile.so.0
- [root@dev src]#
As you can see above the audiofile package provides the libaudiofile library and can easily be installed via yum using the below syntax.
Install audiofile On CentOS Linux To Provide libaudiofile Dependency To NX Client:
- [root@dev src]# yum install audiofile
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * addons: centos.mirror.nac.net
- * base: mirror.steadfast.net
- * extras: mirror.atlanticmetro.net
- * updates: mirror.team-cymru.org
- Setting up Install Process
- Resolving Dependencies
- --> Running transaction check
- ---> Package audiofile.i386 1:0.2.6-5 set to be updated
- --> Finished Dependency Resolution
- Dependencies Resolved
- ====================================================================================================================================
- Package Arch Version Repository Size
- ====================================================================================================================================
- Installing:
- audiofile i386 1:0.2.6-5 base 107 k
- Transaction Summary
- ====================================================================================================================================
- Install 1 Package(s)
- Upgrade 0 Package(s)
- Total download size: 107 k
- Is this ok [y/N]: y
- Downloading Packages:
- audiofile-0.2.6-5.i386.rpm | 107 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : audiofile 1/1
- Installed:
- audiofile.i386 1:0.2.6-5
- Complete!
- [root@dev src]#
You can now proceed with the NX Client installation that caused the initial error.