After a couple of hours of not getting "/usr/bin/env: ruby: No such file or directory" error and google searching, I uninstalled my system ruby 1.8.7 (I also had 1.9.3 installed via rvm) by doing sudo apt-get purge ruby rubygems.
rvm install 1.8.7
while i am trying to use above command error is occurred.
ERROR : error running 'bunzip2'< 'usr/share/ruby-rvm/archives/ruby-1.8.7-p334.tar.bz2 | tar xf - -C /usr/share/ruby-rvm/tmp/rvm_src_3889',please read usr/share/ruby-rvm/log/ruby-1.8.7-p334/extract.log
ERROR : There has been an error while trying to extract the source.
Halting the installation.
ERROR : There has been an
> I recently would up with a book on Ruby and got curious about it.
> I discovered I have Ruby installed. This was a fresh install of
> xubuntu 13.04, so I assume it came with the distro.
> Following the book (The Ruby Programming Language, O'Reilly) in the
> first few pages it talks about things that come with.