Hello, I am on the Installing Ruby lesson and made it all the way to section 2.2 without any problems until now. I was supposed to put in these commands one by one:
rbenv install 2.6.5 --verbose
rbenv global 2.6.5
For rbenv global 2.6.5, I typed it in and got nothing in return so proceeded to type in ruby -v. This is the code that was supposed to show after entering ruby -v:
ruby 2.6.5pxx (20xx-xx-xx revision xxxxx) [x86_64-linux]
but instead I got
Command ‘ruby’ not found, but can be installed with:
sudo snap install ruby # version 2.6.5, or
sudo apt install ruby
See ‘snap info ruby’ for additional versions.
What am I doing wrong? Is this still okay or should I try to fix this before moving on? I have looked on the discord channel and through the forum to see if anyone else has had this problem and the closest I saw was someone who didn’t have the right version of ruby which didn’t apply to my problem. I tried logging off and back on and repeating the steps and reinstalling ruby and it’s still not working. It says that it is installed but I just can’t seem to get back the command the lesson says I’m supposed to get. Please help!