LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-21-2013, 03:33 AM   #1
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Rep: Reputation: 30
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?
 
Old 02-21-2013, 06:59 AM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,079
Blog Entries: 4

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

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


Reply

Tags
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/Novell 4 11-01-2006 10:24 AM
Wrong module path Digiital Linux - General 2 01-11-2005 07:23 AM


All times are GMT -5. The time now is 04:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration