Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-21-2013, 03:33 AM   #1
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Rep: Reputation: 30
wrong bash path for installed software


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

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?
Old 02-21-2013, 06:59 AM   #2
LQ 5k Club
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: High Sierra
Posts: 8,810
Blog Entries: 23

Rep: Reputation: Disabled
whereis ruby
whereis irb
echo "$PATH"
and let us know the output.
Old 02-21-2013, 09:02 AM   #3
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
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"


bash, ruby

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
bash script path issue - how to pass a path as a string to a variable PiNPOiNT Programming 5 04-17-2009 05:48 PM
wrong(?) libGL modules path iiv Slackware 3 07-24-2007 12:27 PM
Kdevolop relative path working wrong jaysags Programming 1 11-20-2006 10:50 PM
Setting my $PATH...syntax is wrong?...please advise... cbjhawks SUSE / openSUSE 4 11-01-2006 10:24 AM
Wrong module path Digiital Linux - General 2 01-11-2005 07:23 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration