LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2009, 11:15 PM   #1
wubai
Member
 
Registered: Dec 2009
Posts: 103

Rep: Reputation: 20
mplayer doesn't work ,error :libaudiofile.so.0, how to fix it?


hi,all!

firstly, mplayer works fine, but after i "removepkged gxine" mplayer doesn't work anymore, i am not sure if the "removepkg gxine" caused this problem, run mplayer in command , get output as follow:

mplayer: error while loading shared libraries: libaudiofile.so.0: cannot open shared object file: No such file or directory

i tried to reinstall gxine, mplayer didn't work too

Can anyone help me fix it ?
 
Old 12-30-2009, 12:02 AM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
This command will not make alot of sense but, try it:
Code:
sudo cp /usr/lib/lib*.so.* /usr/lib/libaudiofile.so.0
I will explain if it works.
 
Old 12-30-2009, 01:13 AM   #3
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
@wubai
Check to see if you have the audiofile package installed. If you don't install it, if you do, reinstall it, it's probably a broken symlink.

@smeezekitty
You're right, it doesn't make any sense at all to try that.
 
Old 12-30-2009, 04:08 AM   #4
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
@smeezekitty:
thank you for your reponse firt !
Are you sure it won't cause any other worst problem by doing this "sudo cp /usr/lib/lib*.so.* /usr/lib/libaudiofile.so.0" ?

$ ls -l /usr/lib/lib*.so.*
lrwxrwxrwx 1 root root 17 2009-12-18 22:54 /usr/lib/libAMDXvBA.so.1 -> libAMDXvBA.so.1.0
-rw-r--r-- 1 root root 1.7M 2009-12-18 22:54 /usr/lib/libAMDXvBA.so.1.0
-rw-r--r-- 1 root root 12K 2009-12-18 22:54 /usr/lib/libfglrx_dm.so.1.0
lrwxrwxrwx 1 root root 21 2009-12-18 22:54 /usr/lib/libfglrx_gamma.so.1 -> libfglrx_gamma.so.1.0
-rw-r--r-- 1 root root 11K 2009-12-18 22:54 /usr/lib/libfglrx_gamma.so.1.0
lrwxrwxrwx 1 root root 21 2009-12-18 22:54 /usr/lib/libfglrx_tvout.so.1 -> libfglrx_tvout.so.1.0
-rw-r--r-- 1 root root 6.2K 2009-12-18 22:54 /usr/lib/libfglrx_tvout.so.1.0
lrwxrwxrwx 1 root root 21 2009-12-18 22:54 /usr/lib/libGL.so.1 -> /usr/lib/libGL.so.1.2
-rw-r--r-- 1 root root 557K 2009-12-18 22:54 /usr/lib/libGL.so.1.2
lrwxrwxrwx 1 root root 15 2009-12-18 22:54 /usr/lib/libXvBAW.so.1 -> libXvBAW.so.1.0
-rw-r--r-- 1 root root 9.9K 2009-12-18 22:54 /usr/lib/libXvBAW.so.1.0

I do not understand that command, it seems copy many things to only one, I am not sure what would happen, i'm sorry i am not very good at it , can you explain that command first?

Anyway, i've tried what you said, got outputs like this: "cp: target “/usr/lib/libaudiofile.so.0” is not a directory"
and mplayer still doesn't work .

any more sugguestions ?
 
Old 12-30-2009, 04:18 AM   #5
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Maybe that lib got messed up or deleted when you removed gxine.

Can you try:
Quote:
$ locate libaudiofile
What do you get? Mine is:
Quote:
/usr/lib64/libaudiofile.so.0
/usr/lib64/libaudiofile.so.0.0.2
/usr/lib64/libaudiofile.la
/usr/lib64/libaudiofile.a
/usr/lib64/libaudiofile.so
 
Old 12-30-2009, 05:45 AM   #6
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
hey guys ! first of all, thank you all for your help, and, i fix my problem

I read some more info about slackware , then checked /var/log/removed_packages, and know what i did to removed the audiofile,i found it located /var/log/mount/slackware64/slackware64-13/slackware64/l/audiofile-0.2.6-x86_64-2.txz and reinstalled , then problem gone.
i guess i removed audiofile when i removed audacious that i thought I just don't need more than one music player

thanks again ! hope it'll help for some newbie to sl like me.

Regards !
wubai

Last edited by wubai; 12-30-2009 at 06:44 AM.
 
Old 12-30-2009, 06:44 AM   #7
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Install audiofile from the l/ package tree, navigate to the /slackware64/l/ directory on your install media and as root
Code:
installpkg audiofile-0.2.6-x86_64-2.txz
This will have to be modified if you are not running the 64 bit version. The other command that you can use, which is probably better is
Code:
upgradepkg --reinstall --install-new audiofile-0.2.6-x86_64-2.txz
samac
 
Old 12-30-2009, 08:10 AM   #8
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by samac View Post
Install audiofile from the l/ package tree, navigate to the /slackware64/l/ directory on your install media and as root
Code:
installpkg audiofile-0.2.6-x86_64-2.txz
This will have to be modified if you are not running the 64 bit version. The other command that you can use, which is probably better is
Code:
upgradepkg --reinstall --install-new audiofile-0.2.6-x86_64-2.txz
samac
if u got time , i would like to know why the next one would be better if i am not running the 64 virsion ? , thanks !

and, i got a new problem, everytime i use mplayer opened a rm file, this cames out: "ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc" , i googled and downloaded essential-amd64-20071007.tar.bz2 , and extracted it and copied "cook.so drvc.so README sipr.so" in /usr/lib64/codecs, and Ctrl+Alt+Backspace reboot the X, this problem is still there, wondering it might need to reboot the machine to effect, or what? i rebooted too much, i'll try later

xine cant play rm file too, there is just only audio,prompted that unsupport ,kind of lack of codecs

Regards!
wubai

Last edited by wubai; 12-30-2009 at 08:25 AM.
 
Old 12-30-2009, 11:20 AM   #9
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Sorry I did not make myself clear, upgradepkg can be better to use if a package has already been installed. You should only use the x86_64 with 64 bit systems otherwise you would use the i486.

samac
 
Old 12-30-2009, 12:56 PM   #10
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
You must be running another version of cp.
The reason is may work is all it needs is a working ELF header, if it cannot find the procedure it wants most programs will ignore it.
And BTW i did it on my own system and it worked correctly.

Last edited by smeezekitty; 12-30-2009 at 06:23 PM.
 
Old 12-30-2009, 01:23 PM   #11
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Quote:
You must be running another version of cp.
The reason is may work is all it needs is a working WTF header, if it cannot find the procedure it wants most programs will ignore it.
And BTW i did it on my own system and it worked correctly.
Quote:
This command will not make alot of sense but, try it:
Code:

sudo cp /usr/lib/lib*.so.* /usr/lib/libaudiofile.so.0

I will explain if it works.
Could you possibly explain what this gibberish means. The original poster has a problem that needs to be explained clearly.

samac
 
Old 12-30-2009, 02:06 PM   #12
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
Quote:
Originally Posted by smeezekitty View Post
This command will not make alot of sense but, try it:
Code:
sudo cp /usr/lib/lib*.so.* /usr/lib/libaudiofile.so.0
I will explain if it works.
anyone reading this, DO NOT try the given command! it will copy all of the files that match lib*.so.* (ie, many files) to libaudiofile.so.0 (ie, one file). meaning, it will erase all but one of the many, many system files that match the pattern. it's a good way to screw up your system.
 
Old 12-30-2009, 02:18 PM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by mattca View Post
anyone reading this, DO NOT try the given command! it will copy all of the files that match lib*.so.* (ie, many files) to libaudiofile.so.0 (ie, one file). meaning, it will erase all but one of the many, many system files that match the pattern. it's a good way to screw up your system.
Actually no, it will not do that. When copying multiple files, "cp" wants the final argument to be a directory. Because libaudiofile.so.0 is a file, the shell will complain about this "libaudiofile.so.0 is not a directory" so you realize that in fact it is there. If the libaudiofile.so.0 were absent, you would get a different error stating that "libaudiofile.so.0 could not be found".

A very round-about and shady way of finding out whether a file exists if you ask me.

Eric
 
Old 12-30-2009, 02:25 PM   #14
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
Quote:
Originally Posted by Alien Bob View Post
Actually no, it will not do that.
yeah i realized that after i posted, then my internet went out. doh!

my warning would apply, i believe, if the command was mv instead of cp.
 
Old 12-30-2009, 05:34 PM   #15
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
my warning would apply, i believe, if the command was mv instead of cp.
Well, it was not mv.
Quote:
You must be running another version of cp.
The reason is may work is all it needs is a working WTF header, if it cannot find the procedure it wants most programs will ignore it.
And BTW i did it on my own system and it worked correctly.
HUH? somthing wrong, it was suppose to say ELF and not WTF.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I got the 'xcb_xlib unlock error for java, fix i found doesn't work acidblue Fedora 1 05-07-2008 05:43 AM
MPlayer -vo Fatal Error - Easy FIX?? Nadinesky Linux - Software 2 08-23-2005 03:56 PM
How do i fix this error for Mplayer? gbdavidx Linux - Software 9 11-18-2004 02:39 AM
libaudiofile not found peterjacx Linux - Software 1 03-10-2004 05:20 PM
libaudiofile - where are you Saeven Linux - General 1 10-14-2002 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration