LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2004, 06:56 PM   #1
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
Guide on how to diagnoise RealPlayer not playing website audio (for noobs:-))


If you are experiencing problems getting real audio to play when you click a web link, this guide may help you or give you some ideas. I had successfully installed real player 8 and it was working fine until I used apt-get to update my Xandros system one day. Coincidence or not, real player streams would no longer work after this day (for whatever reason). Please be advised there are a 1000 things that can cause real player problems on Linux but these steps did solve my particular problem this one time. Good luck.

First, make sure RealPlayer is installed. This might seem obvious but often RealPlayer9 or RealPlayer One are installed, These may or may not work from web browsers depending on how they are installed. Also, real players are default on some installations (i.e. Xandros) but not on others (i.e. redhat, debian, fedora core 1, ...).

I know that realplayer8 does in fact work on RedHat 7.3 RedHat 8, RedHat 9, Fedora Core 1, Xandros and Debian only because I have tried these. I have not had much success with other version of Real Player.

If you need to install a real player, this guide may help you. (Full disclosure...I wrote the guide. Its worth what it cost you and no more.)

www.linuxquestions.org/questions/showthread.php?s=&threadid=211402

I knew for sure I had RealPlayer8 installed because I installed it, so I did not try to install this package. It turns out I needed the install package anyway, so you may want to download it and keep it in a backup, but more on why in a minute. First I tried to run it by hand. I opened a console and found the executable which is called

Quote:
realplay
This can be done with the command

Code:
find / -name realplay
The shell returned

Code:
/usr/bin/realplay
/usr/X11R6/bin/realplay
The /usr/bin/realplay file is commonly the path to the executable and this time was no exception. I went into the directory with

>> cd /usr/bin

and attempted to run the executable with

>> ./realplay

The shell responded with

Quote:
./realplay: line 5: /usr/lib/RealPlayer8/realplay: No such file or directory
./realplay: line 5: exec: /usr/lib/RealPlayer8/realplay: cannot execute: No such file or directory
I do not know a whole lot about Linux but I read the output carefully and guessed (correctly or not) that the 'realplay' program attempts to run(execute) another program called /usr/lib/RealPlayer8/realplay. In other words, the 'program' I was trying to execute was either a link, shortcut, shell script or some other pointer to the real file at /usr/lib/RealPlayer8/realplay. It was not the actual program that does the real work (no pun intended).

Next I went to the directory /usr/lib/RealPlayer8/ by doing a

Code:
cd /usr/lib/RealPlayer8
The shell returned a comment that the directory did not exist either. At this point, it was obvious the installation was completely hosed. Being a Windows vet, I opted for a reinstall.

I still had the .deb package from my first (successful) install. I did a reinstall with

Code:
dpkg -i realplayer_8.0-2_i386.deb
As a result the shell said:

Quote:
dpkg - warning: downgrading realplayer from 8.0.11 to 8.0-2.
(Reading database ... 86941 files and directories currently installed.)
Preparing to replace realplayer 8.0.11 (using realplayer_8.0-2_i386.deb) ...
Unpacking replacement realplayer ...
Setting up realplayer (8.0-2) ...
then returned to a prompt. It was only at this point I figured out what had happened to me. Notice the line
Quote:
Preparing to replace realplayer 8.0.11 (using realplayer_8.0-2_i386.deb) ..
from the shell. Looks like an upgrade hosed me and replaced my working version. This happens sometimes. This is not to say the newer version doesnt work or even isnt better. Upgrading over a fresh install just breaks things sometimes.

At this point the realplay was successfully reinstalled but the browser still would not work. Having dealt with realplay alot (since I am a Jim Rome fanatic), I knew the browser plugin had to be messed up. This happens all the time with realplayer even if a fresh install is completely successful. Since i had a broken install to clean up, first I had clean up the the plugins. The real player plugin for browsers is call rpnp.so. Doing a search for all files of this name makes cleanup easier.

Code:
find / -name rpnp.so
The shell returned all kinds of locations

I went to each of these EXCEPT the main file in /usr/lib/RealPlayer8/rpnp.so and deleted all of the copies EXCEPT the "real" copy. Acutally I was just deleting sym links. More on this shortly. To get a reinstall OR a fresh install of realplayer working from a browser on Linux, each browsers plugins directory has to contain a copy of or a link to the rpnp.so file. As I understand, it is better to use a symbolic link rather than copy the real file for lots of reasons, including space considerations and maintanence issues.

To create the sym links, locate each plugin directory using a

find / -name plugins

On my machine this returned

/usr/lib/qt3/plugins
/usr/lib/kde3/plugins
/usr/lib/xine/plugins
/usr/lib/opera/plugins
/usr/lib/XandrosSMA/plugins
/usr/lib/mozilla/plugins
/usr/lib/netscape/plugins
/usr/local/mozilla/plugins
/usr/local/netscape/plugins
/usr/share/qt3/plugins
/usr/share/apps/kate/plugins
/usr/share/apps/digikam/plugins
/usr/share/apps/khelpcenter/plugins
/usr/share/apps/XandrosFileManager/plugins
/usr/share/apps/kdeprint/plugins
/usr/share/apps/korganizer/plugins
/root/.kde/share/apps/XandrosFileManager/plugins
/root/.netscape/plugins


The key files are as follows because they are plugin directories for browsers rather than some other program.

/usr/lib/opera/plugins
/usr/lib/mozilla/plugins
/usr/lib/netscape/plugins
/usr/local/mozilla/plugins
/usr/local/netscape/plugins

Next create symlinks for each directory in turn

ln -s /usr/lib/RealPlayer8/rpnp.so /usr/lib/opera/plugins
ln -s /usr/lib/RealPlayer8/rpnp.so /usr/lib/mozilla/plugins
ln -s /usr/lib/RealPlayer8/rpnp.so /usr/lib/netscape/plugins
ln -s /usr/lib/RealPlayer8/rpnp.so /usr/local/mozilla/plugins
ln -s /usr/lib/RealPlayer8/rpnp.so /usr/local/netscape/plugins

Click a real player web link and see if it works. On my machine, this repair worked.
 
Old 10-26-2004, 06:59 PM   #2
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Rep: Reputation: 15
very nice guide. Good work
 
  


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
playing realplayer files on gxine north49er Slackware 4 08-12-2005 11:08 AM
Guide on how to install RealPlayer for Debian/Xandros/Redhat/Fedora (for noobs) jdruin Linux - Software 6 06-06-2005 01:14 AM
Realplayer not playing.. simple Linux - Software 9 05-22-2005 08:49 AM
Heres a website to help complete noobs get Samba working! hitbob Linux - Networking 0 08-22-2003 03:04 AM
playing realplayer(.rm) files dark_light Linux - Newbie 1 03-28-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 PM.

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