I'm currently trying to learn Rails, and in the process, I compiled Ruby on my own, as I did with Python, expecting the same process.
However, after digging a bit, I eventually gave up and just started using rvm. I've installed everything, but after a few moments realized my system (Ubuntu 11.10) thought I was using the version of Ruby I compiled (which was missing openssl
) rather than rvm's version of Ruby, which was complete.
I "uninstalled" it according to this post, and after reinstalling rvm's Ruby with openssl
, iconv
, and rails, I'm now getting the following error message:
secretasianman@ubuntu:~/Projects/first_app$ rails server
bash: /usr/local/bin/rails: /usr/local/bin/ruby: bad interpreter: No such file or directory
Any idea on how to fix this? I've edited the last two lines of ~/.bashrc
to read like the following, but to no avail.
PATH=$PATH:$HOME/.rvm/bin:$HOME/.rvm/rubies/ruby-1.9.3-p125/bin # Add RVM to PATH for scripting
export PATH