LinuxQuestions.org
Review your favorite Linux distribution.
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 10-23-2004, 09:17 PM   #1
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
Clueless and frustrated... RPM has made previous installation disappear


Well here I am again with what is such a stupid question that I can't find an answer to it anywhere.

I downloaded and ran the RPM for RealPlayer 10 from the Real website. Clicked on it and Yast (Suse 9.1) seemed to install it no problem.

Now I click on the freshly created menu item "RealPlayer 10" - and there is nothing there. Editing the menu reveals that "realplay" is the command being executed. But what is that? It's not a file location. Where is it looking?

Meanwhile the menu item for the previous installation (RealPlayer 8), which points to "/usr/lib/RealPlayer8/realplay" no longer works - because the program has apparently been deleted from that location.

Pointers, anyone? Would be really appreciated...
 
Old 10-23-2004, 10:52 PM   #2
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
It sounds like you´re using the wrong command, or the location of the file is wrong.
Did you tried running it from a terminal?
type real and enter the "tab" key, it will print out all posible command names, then try each one, if you found one that works, simply edit your menu link.
to see the exact directory of a command, use the "whereis" command.
Maybe that is the problem, i don´t think that it is gone, unless you deleted it, most probably is that you´re using the wrong command.
In case it helps, i have 2 realplay commands in my box, realplay and realplay9, both of them are in /usr/bin.

Quote:
Editing the menu reveals that "realplay" is the command being executed. But what is that? It's not a file location. Where is it looking?
No, it is not, it is just the name of the file that will be executed each time you press the link, most probably it is located in /usr/bin (where most of your binary files are).
echo $PATH , will show you where it is looking
 
Old 10-25-2004, 02:28 PM   #3
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Original Poster
Rep: Reputation: 30
Thanks very much for that Electronkz.

Quote:
[B]It sounds like you´re using the wrong command, or the location of the file is wrong.
Did you tried running it from a terminal?
type real and enter the "tab" key, it will print out all posible command names, then try each one, if you found one that works, simply edit your menu link.
In my terminal program - xterm - pressing tab just produces a beep.

Typing 'realplay' at the prompt just produces this -

bash: realplay: command not found

Quote:
In case it helps, i have 2 realplay commands in my box, realplay and realplay9, both of them are in /usr/bin.
Is that where programs have to be in order to be executable with just the short filename ('realplay' etc)?

Specifically, the problem is that clicking on an audio web link in a browser brings up "realplay not found".
 
Old 10-25-2004, 03:30 PM   #4
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
There is not much to do, really.
Go to /usr/bin, and do: ls realplay*
If you see: realplay10 (then this is your baby )
type realplay10, it should work, then go and edit your menu.
If don´t find it, do : locate realplay* , find realplay*, whereis realplay* you have to find something , then go and try to execute it from there.
If none of the above works, just reinstall realplay10,
make sure you use: rpm -ivh <rpm> #to install
rpm -Uvh <rpm> #to upgrade
Make sure, that when you install rpm, you do it from the terminal, i tell you this,
because, for example if you use mozilla and you open up a rpm there, the $tupid realplayer will think it is a: real player media(rpm) (of corse you can turn it off)
Try it out, see if it works,
 
Old 10-25-2004, 04:41 PM   #5
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Original Poster
Rep: Reputation: 30
Thanks again for that. However, the situation had evolved and I didn't explain this properly!

I know where realplay is - it's in usr/local/RealPlayer/ . The program runs fine from there.

The problem is that there seem to be menu shortcuts and file associations everywhere which point to just 'realplay' - and these don't work ('command not found') presumably because the executable is not in the usr/bin directory. Is that right? What can I do to make the simple command 'realplay' work from anywhere?
 
Old 10-25-2004, 05:51 PM   #6
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
Ok,
You´ve to fix the $PATH, this is an environment variable, it´s where "linux" searches for files, the $PATH is for binary files(commands),
Now, down to business:
You´ve to edit some files, i use vim, this is its basic usage:
Code:
vim <file>
Press [ I ] = Insert , to start writting. 
Press [ Esc] and then write: ":wq" to save & quit
Anyway, type "man vim" for more info
This are the files:
1) /etc/profile # edit the environment variable for all users except root
you should see something like:
Code:
 
PATH=$PATH:$HOME/bin
export PATH
If you don´t have it, write it,
As you probably intuited, the ":" separates directories.
so what you have to do, is add the exact directory your realplayer bin.
It should be something like: /usr/local/RealPlayer/bin

2) ~/.bash_profile You use this file, when you want to set a $PATH specifically for this user, say root. You don´t have to edit this, edit the other one instead, so every user, will be available to use realplayer.

And that is it,
 
Old 10-27-2004, 03:20 PM   #7
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Original Poster
Rep: Reputation: 30
Thanks again Electronkz.

I reinstalled it using the .bin file from a terminal session in the /home directory. This worked fine.

Have noted your advice about how to change environment variables for when this kind of thing happens again in the future (it is sure to).

Cheers once again for your kind help.

Rollo
 
Old 10-27-2004, 04:01 PM   #8
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
No problem,
 
  


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
Upgrading Mozilla/Uninstall Previous Version - RPM vs. Source CooManChu Linux - Software 3 12-23-2004 01:42 PM
adding debian to a previous grub installation starguymike04 Debian 18 08-25-2004 02:34 AM
Custom-Made Installation DVD from 4-CD ISO Set? jdanniel Linux - Newbie 1 08-07-2004 01:06 PM
Has anybody successfully made a bootable floppy diskette during installation? shawhu Fedora - Installation 2 01-21-2004 10:10 PM
SDL -1.2.5-1 and previous versions. (installation & removal) Mr Guk Linux - Software 1 11-07-2002 01:29 AM


All times are GMT -5. The time now is 07:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration