LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   wrong bash path for installed software (http://www.linuxquestions.org/questions/linux-software-2/wrong-bash-path-for-installed-software-4175451077/)

irvken 02-21-2013 04:33 AM

wrong bash path for installed software
 
Hi,

I previously compiled and installed ruby and irb to /usr/local/bin

Having now removed them I installed them using aptitude so that /usr/bin/irb works fine from the prompt, but if i just write irb it looks at the old paths

Code:

root@irvken:/home/sean# irb
bash: /usr/local/bin/irb: /usr/local/bin/ruby: bad interpreter: No such file or directory

How can I fix this?

Habitual 02-21-2013 07:59 AM

Code:

whereis ruby
whereis irb
echo "$PATH"

and let us know the output.

irvken 02-21-2013 10:02 AM

Code:

root@irvken:/home/sean# whereis ruby
ruby: /usr/bin/ruby1.8 /usr/bin/ruby /usr/lib/ruby /usr/lib64/ruby /usr/share/man/man1/ruby.1.gz
root@irvken:/home/sean# whereis irb
irb: /usr/bin/irb /usr/bin/irb1.8 /usr/local/bin/irb /usr/share/man/man1/irb.1.gz
root@irvken:/home/sean# echo "$PATH"
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin



All times are GMT -5. The time now is 12:16 PM.