LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 08-27-2005, 10:10 AM   #1
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Rep: Reputation: 30
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
 
Old 08-27-2005, 10:22 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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?
 
Old 08-27-2005, 10:47 AM   #3
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Original Poster
Rep: Reputation: 30
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
 
Old 08-27-2005, 11:23 AM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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
 
Old 08-27-2005, 11:35 AM   #5
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Original Poster
Rep: Reputation: 30
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
 
Old 08-27-2005, 11:42 AM   #6
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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?
Code:
libstdc++.so.5
if not, install it. if yes, be sure that the path where is this file is in your
Code:
ld.so.conf
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
 
Old 08-27-2005, 03:49 PM   #7
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Original Poster
Rep: Reputation: 30
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.
 
Old 08-27-2005, 04:08 PM   #8
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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
 
Old 08-27-2005, 04:15 PM   #9
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Original Poster
Rep: Reputation: 30
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
 
Old 08-27-2005, 04:26 PM   #10
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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.
 
Old 08-28-2005, 01:32 AM   #11
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
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....
 
Old 08-28-2005, 03:46 AM   #12
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Original Poster
Rep: Reputation: 30
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.
 
Old 08-28-2005, 05:12 AM   #13
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 174

Original Poster
Rep: Reputation: 30
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
 
Old 08-28-2005, 07:01 AM   #14
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CDRom works under /Root, not under non-/root junger Linux - Hardware 6 07-25-2005 07:26 PM
mplayer works but not gmplayer gilq1927 Linux - Newbie 5 12-05-2004 05:38 PM
mplayer works on redhat but not on gentoo 0pal_t0ad Linux - Software 1 03-21-2004 11:56 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
mplayer works, gmplayer does not Texicle Linux - Software 15 03-26-2003 02:31 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration