[SOLVED] mplayer doesn't work ,error :libaudiofile.so.0, how to fix it?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
@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" ?
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 .
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.
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
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.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
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.
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:
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.
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.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.