Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Rep:
mplayer
Hi again, thought I'd take a look at mplayer which I downloaded form linux packages. There were quite a lot of dependencies, which I also downloaded from linux packages.
I installed all the relevant packages without problem, but (there is always a but isn't there?) I tried to run the program without success. I run the program from the "run command" choosing a terminal for ease of classifying the problem. This is the info that came up:
Quote:
mplayer: error while loading shared libraries: liba52.so.0: cannot open shared object file: No such file or directory
Is there anyone that can shed some light on the matter? I guess it is a case of some symbolic links or something like that.
liba52.so.0: cannot open shared object file: No such file or directory
I guess you missed a dependency, which is liba52If you cannot find a precompiled package for Slack, then d/l it from the link I gave you and install it like this:
Code:
./configure --prefix=/usr --enable-shared
make
su
make install
ldconfig
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
Thanks bathory
Thanks for your prompt reply. I find it strange that the slack required list didn't include liba52? I went ahead and installed it - following your instructions. Unfortunately, it didn't help. I am getting the same problem. The other thing that is strange is that I can't find liba52 listed by the Kpackage. I usually install most packages as root - which I did with mplayer. When I returned to user - I couldn't find mplayer listed in the media list?
Have you any more suggestions as to how I can solve my problems?
Does this liba52.so.0 created under /usr/lib? What is the output of:
Code:
ls -l /usr/lib/liba52.so*
Take a look in /etc/ld.so.conf to see if the path "/usr/lib" exists (it should exist). If not, add it and run ldconfig again.
Since I don't know how the mplayer package you installed was compiled, run:
Code:
ldd mplayer
to find out where it expects to find that library. If it's in different directory than the above create a symlink to that directory.
Since there is no liba52.so* in /usr/lib you didn't install it correctly, or it's installed in a different directory. Run as root:
Code:
updatedb
locate liba52.so
to find where the library is installed. Then add the directory containing liba52.so in /etc/ld.so.conf and run ldconfig.
Also as Nylex noted it's ldd mplayer.
Well after udatedb I did the search as you said but couldn't find any thing at all!
Are you running it as root? Because it should at least find liba52.so in the directory you compiled the sources (the one created after extracting a52dec-0.7.4.tar.gz)!!!
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
Well, I have been doing a little fishing. I thought that I would do a new install - from user mode. I cd to the folder and ran the first part of your code - the configure
/configure --prefix=/usr --enable-shared
but I didn't get anywhere at all "permission denied". Surely I don't need to be root to configure?
If you have ran "/configure --prefix=/usr --enable-shared" as root at a first place, then permission denied is normal. You can do it as root if you like, but in general it's good practice to run ./configure and make as normal user and run "make install" as root. Anyway, as root, run:
Code:
make distclean
to remove the previous compiled sources and and start over.
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
Hi bathory
Well, as I have said before to another linux member, you're not just a pretty face are you? I followed your instructions and then re-installed as user/root. I then checked to see if I had a read out for liba52.so - and I had. Now I have a new problem, which is probably on the same lines as the last one. When I downloaded all the packages from linux packages - I installed them as root instead of user/root. When I run mplayer I get a new problem as follows:
Quote:
mplayer: error while loading shared libraries: libfaad.so.0: cannot open shared object file: No such file or directory
I haven't installed such a file? The following is a list of the packages needed according to the slack required file submitted by mplayer:
to find out all the needed libraries and those you're still missing. According to the Mplayer software requirements you don't need all this stuff!!! As for libfaad you can get if from here and compile it as you did with liba52.so.
Another one thing you can try is to d/l the Mplayer source and compile it yourself. It should be easy if you meet the dependencies above and have already installed the various codecs.
***EDIT***
I've tried to compile faad and it needs id3lib!!!. So you have to install id3lib as usual and then for faad follow the instructions in README.linux. Note that before running "autoreconf -vif" this you must create by hand a directory named bmp under the directory plugins or else ./configure fails!! Then use:
Code:
./configure --with-mp4v2 --with-bmp
to compile
***EDIT 2***
libfaad compile fails for various reasons, so you best bet is to compile mplayer yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.