LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   which config file stores the application names to run in bash??? (https://www.linuxquestions.org/questions/linux-software-2/which-config-file-stores-the-application-names-to-run-in-bash-613630/)

shady_Dev 01-15-2008 12:20 AM

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...

hvc123 01-15-2008 01:53 AM

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.

lorentz 01-15-2008 02:45 AM

Quote:

Originally Posted by hvc123 (Post 3022825)
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}"

dive 01-15-2008 08:12 AM

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.

colucix 01-15-2008 10:00 AM

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


All times are GMT -5. The time now is 02:46 PM.