I am trying to run ruby on my RPi (Raspbian/Debian distro). I have installed ruby with apt-get command, but it has installed 1.9. 3 version. I wanted newer one, so I removed that one and next, according to some guide, I have installed ruby-install and used it to install ruby 2.1. 5. After some downloading, compiling it has installed ruby to my ~/. Rubies/ruby-2.1. 5 directory.
My problem is that ruby -v
still says ruby 1.9.3
. I don't know why 1.9. 3 hasn't been fully uninstalled and why it hasn't been updated to the newer one. How can I properly configure my system to acknowledge my new ruby installation?