Whenever I open a new terminal window I now get:
-bash: /usr/local/bin/heroku: /usr/local/bin/ruby: bad interpreter: No such file or directory
Any idea as to why this is happening and how to get rid of it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make sure the first line of the file
/usr/local/bin/herokuis#!/path/to/ruby. You may need to change it from/usr/local/bin/rubyto/usr/bin/ruby, or if you cannot find therubyexecutable, typewhich rubyorupdatedb && locate rubyto find it.If the above doesn’t work…
Check your
~/.bashrc,~/.inputrc~,/etc/bashrc,/etc/inputrc,/etc/profilefor a line trying to execute/usr/local/bin/heroku.Another idea is you might have this as one of your startup programs. Check in
/etc/inittabfor a line with/usr/local/bin/heroku.If you still cannot find that line in any of those files you can run
grep -iH heroku /*