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 01-15-2008, 12:20 AM   #1
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
which config file stores the application names to run in bash???


I ve got a problem..
I installed mplayer first from the source then from rpm because the former
installation is not working...
but now i want to run the later ...and for that everytime i have to go to the /usr/bin directory and then run ./mplayer to run the later mplayer [installed by rpm]....
plz tell me the configuration file to edit and remove the entry of the mplayer installed from source....

Also if any other alternative plz do tell me
Thanks in advance...
 
Old 01-15-2008, 01:53 AM   #2
hvc123
Member
 
Registered: Jun 2004
Posts: 33

Rep: Reputation: 16
hi,

sounds like eaither the file 'mplayer' is not executable or your PATH is busted.

check your path by typing 'export' and make sure /usr/bin is there.
other than that sorry dude i dunno.
 
Old 01-15-2008, 02:45 AM   #3
lorentz
LQ Newbie
 
Registered: Jul 2006
Location: Saint Petersburg, Russia
Distribution: CentOS, Debian, MacOS X, OpenBSD, FreeBSD
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by hvc123 View Post
hi,

sounds like eaither the file 'mplayer' is not executable or your PATH is busted.

check your path by typing 'export' and make sure /usr/bin is there.
other than that sorry dude i dunno.
also you can add your path definition into ~/.bash_profile file:

Code:
PATH=~/bin:/opt/bin:"${PATH}"
 
Old 01-15-2008, 08:12 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
If you are asking how to uninstall the mplayer compiled from source then usually this is done by 'make uninstall'. Then you will probably need to install the rpm again.

If you want to check what your PATH is do 'echo $PATH' and check that /usr/bin is there.
 
Old 01-15-2008, 10:00 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe the problem is not to have an entry for /usr/bin in your PATH (usually on a working system is already there). You have to check the order in which directories are stored in PATH: when you run a command like simply
Code:
mplayer
the system look for an executable in the directories specified in the PATH variable, one after one. The first encountered is the one executed.

Also, the already suggested "make uninstall" from the installation source can solve the problem (further re-installation of the RPM is useful only if the two installation had common places for libraries, configuration files and so on...).

Another solution, if you don't want to uninstall, is to remove the executable bit from the first binary executable. Suppose you have installed it in /usr/local/bin, just do
Code:
chmod -x /usr/local/bin/mplayer

Last edited by colucix; 01-15-2008 at 10:03 AM.
 
  


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
Bash scripting. Strip chars from file names, etc. mooreted Programming 7 02-11-2007 08:52 PM
Problems with Fat long file names in Bash brett90 Slackware 5 06-03-2005 12:15 PM
bash:output file names from shell script to vi sickboy Linux - Newbie 6 10-14-2004 03:40 AM
In which file does redhat-config-xfree86 stores its settings joeyBig Linux - General 2 09-21-2004 11:43 AM
Bash crashes ? File names with () and spaces Danodare Slackware 1 02-27-2004 02:50 PM

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

All times are GMT -5. The time now is 04:34 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