Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-27-2005, 10:10 AM
|
#1
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Rep:
|
Mplayer only works as Root
Hi All,
I am am happy FC3 user. In fact I have used all Fedora versions and some of the Red Hat versions before that. I have never had any real trouble with Mplayer.
I am trying out FC4 in a test partition before switching full-time but I still have quite a few problems. One of them is Mplayer.
I installed Mplayer (and GMPlayer etc) using Yum (with the Livna repositories).
Installation went without a hitch. It put the usual icon in the usual menu place. However starting it from the menu results in nothing. If I open a terminal, su to Root and type "gmplayer" it works fine. If I start it from a terminal in my normal user account I get the following:
Code:
[mark@localhost ~]$ gmplayer
MPlayer 1.0pre7-4.0.0 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
[skin] file ( /usr/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).
[mark@localhost ~]$
Any ideas why this is happening?
I have never had to make any changes to startup scripts in the past (I don't even know how to do this).
Thanks
Mark
|
|
|
|
08-27-2005, 10:22 AM
|
#2
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
Did you download skins that are required for the gmplayer?
[skin] file ( /usr/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).
Also, does just simply doing mplayer <media-filename> play the video or media file for your user?
|
|
|
|
08-27-2005, 10:47 AM
|
#3
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Original Poster
Rep:
|
I didn't download skins - but the skin "Blue" is present in the /usr/share/mplayer/Skin/ directory (and that is the standard one that I am happy with). There is indeed no "default" in that directory but I think that the "Blue" skin is the same.
Yes, doing "mplayer <filename> works as a normal user.
Any suggestions?
Thanks
Mark
|
|
|
|
08-27-2005, 11:23 AM
|
#4
|
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
hi there,
and running as root, what message you receive when mplayer tries to get the skin?
does it load from the same directory, i.e.,/usr/share/mplayer/Skin/ ?? could it be a permission problem?
what happens if you set a symbolic link between default and blue in this directory?
regards,
slackie1000
|
|
|
|
08-27-2005, 11:35 AM
|
#5
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Original Poster
Rep:
|
Opening gmplayer as root gives no error message about the skins (but I think I selected the "Blue" skin when I was playing with it).
Code:
[root@localhost mark]# gmplayer
MPlayer 1.0pre7-4.0.0 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Exiting... (Exit)
[root@localhost mark]#
However, I think that the skins issue is not the real problem.
I have also installed RealPlayer (I use this in particular for audio on the BBC website) again, this has never given me a problem in the past (just install it and link the two file nphelix.so & nphelix.xpt to the "plugins" directory of the browser and hey presto!...)
Now - in FC4 - however I get the following error:
Code:
[root@localhost mark]# realplay
/usr/local/RealPlayer/realplay.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Sound itself is not an issue. I can play music etc. and, if I load MPlayer as root, I can get sound & video just fine - just not as a normal user...
Mark
|
|
|
|
08-27-2005, 11:42 AM
|
#6
|
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
hi there,
i will try to make general suggestions cause i don't use fedora. 
the directory and the file exist?
Code:
/usr/local/RealPlayer/realplay.bin
do you have this file in your system?
if not, install it. if yes, be sure that the path where is this file is in your
run ldconfig again it you change it.
can you try some other video format that is not RealPlay with your non-root user? if it works, we know where the problem is. 
regards,
slackie1000
|
|
|
|
08-27-2005, 03:49 PM
|
#7
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Original Poster
Rep:
|
Well RealPlayer seems there OK...
Code:
[root@localhost mark]#ls /usr/local/RealPlayer/
codecs doc LICENSE plugins README realplay.bak share
common lib mozilla postinst realplay realplay.bin
[root@localhost mark]#whereis realplay
realplay: /usr/bin/realplay
[root@localhost mark]#
But I don't have libstdc++.so.5, I have so.6 instead...
Code:
[root@localhost mark]#locate libstdc++.so.
/usr/lib/libstdc++.so.6.0.5
/usr/lib/libstdc++.so.6
What does libstdc++ do?
Could I just get a copy of libstdc++.so.5 and put it in that directory?
Should RealPlayer (I installed it from RealPlayerGOLD10.rpm from their website) work with libstdc++.so.6?
And what of MPlayer? Is that a related problem or are these two completely different issues?
Thanks
Mark
Last edited by ArthurDent; 08-27-2005 at 03:53 PM.
|
|
|
|
08-27-2005, 04:08 PM
|
#8
|
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
hi there,
hummm. ..that is what i wrote before ... 
find another media file - not RealPlayer type - and fire mplayer as non-root user ...
only then, we can isolate the problem: Mplayer or RealPlay.
yes, the library version can be the problem...
if you don't know what it is, take a look at the first hit from google.
regards,
slackie1000
|
|
|
|
08-27-2005, 04:15 PM
|
#9
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Original Poster
Rep:
|
Quote:
|
if you don't know what it is, take a look at the first hit from google.
|
Well I hope that makes more sense to you than it does to me....
Does this have anything to do with the fact that FC4 uses GCC4x not GCC3x? (Although both packages were installed from rpm - not compiled from source...)
Sigh...
I think I will just have to stick with FC3 for a while longer...
Thanks
Mark
|
|
|
|
08-27-2005, 04:26 PM
|
#10
|
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
hi there,
you are welcome.
Quote:
Originally posted by ArthurDent
Does this have anything to do with the fact that FC4 uses GCC4x not GCC3x? (Although both packages were installed from rpm - not compiled from source...)
|
i think that is exactly the point. the gcc/++ compiler and the gcc/++libraries are the blood of your system. if a package - like the rpm that you got - is compiled against another version this can bring a big mess to your system. i don't know specifically in the case of RealPlayer how the dependencies and required libraries are checked but i don't think that their provided rpm is supported in FC4.
hope you can solve your problem with FC3.
just 
regards,
slackie1000
[edit] i think this can be interesting for you. Mplayer has no mention of gcc4 in their docu. I trust a lot in those guys from mplayer. if you want to use it, i would stick with gcc3 for while.
Last edited by slackie1000; 08-27-2005 at 04:36 PM.
|
|
|
|
08-28-2005, 01:32 AM
|
#11
|
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
locate the binary of mplayer by the command "whereis mplayer". after that look forward to the permissions of the binary. after changing the permissions also for the skin location, execute the command "rpm -ql mplayer". this lists all the files and folders that the rpm has installed. check for permissions for all the locations,also for the folders. this will probably solve the issue since it will be a permission problem because root can use it and an ordinary user cannot.
vimal....
|
|
|
|
08-28-2005, 03:46 AM
|
#12
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Original Poster
Rep:
|
Hi Vimal,
Thanks.
Code:
[root@localhost mark]# whereis mplayer
mplayer: /usr/bin/mplayer /etc/mplayer /usr/lib/mplayer /usr/share/mplayer /usr/share/man/man1/mplayer.1.gz
[root@localhost mark]# ls -la /usr/bin/mplayer
-rwxr-xr-x 1 root root 6163460 Jun 21 09:03 /usr/bin/mplayer
What should I change the permissions to so that any user will be able to use it?
But the thing that really puzzles me is the fact that I used Yum to install it. Surely that should take care of all this stuff?
I have to admit that in the past (FC1, FC2 & FC3) I used apt-get and synaptic to install it from different repositories. I used Yum this time because it seems to be "approved" for FC4. Perhaps I should just unistall it and try the apt-get repositories instead?
[Edit] A quick check (I will look harder later) seems to indicate that there is no version of apt-get for Fedora4 [/Edit]
Thanks again
Mark
Last edited by ArthurDent; 08-28-2005 at 03:55 AM.
|
|
|
|
08-28-2005, 05:12 AM
|
#13
|
|
Member
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174
Original Poster
Rep:
|
OK Guys,
I now have this all sorted out.
I uninstalled mplayer (+gmplayer etc) using Yum.
I then downloaded an mplayer rpm for FC4 from rpm.pbone.net which led me into dependency hell. However, one of the dependencies was libstdc++.so.5 so (with some trepidation) I downloaded and installed an rpm which contained that from the same site. I don't know if it has screwed anything else up but installing that allowed RealPlayer to work - so my wife can now listen to the Archers on BBC Radio 4...
Next I fixed the other (several) dependencies and finally installed some skins.
Now it works! (as a user).
Thanks to all for all your help.
I'm just a little bit cross that Yum did not do this for me...
Thanks again
Mark
|
|
|
|
08-28-2005, 07:01 AM
|
#14
|
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
hi there,
welcome....
Quote:
Originally posted by ArthurDent
OK Guys,
I now have this all sorted out.
|
and that is the most important thing...
have fun..
regards,
slackie1000
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:20 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|