Please pardon my errors (if any) as this is my first question here.
I just successfully installed ruby on my Ubuntu 20.04 following this guide: https://github.com/jhu-ep-coursera/fullstack-course1-module1/commit/170f351229887f54f154fba637048520041951b4
However after doing ruby -v
(line 71) to display version of ruby installed, I get an error:
Command 'ruby' not found, but can be installed with:
sudo snap install ruby # version 2.7.2, or
sudo apt install ruby # version 1:2.7+1
See 'snap info ruby' for additional versions.
I have tried reinstalling ruby using the same procedure but to no avail.
I have also tried searching for similar questions but the ones I found were for installing ruby using rvm
whereas in my own case, I am using rbenv
.
I will like to know what I might be missing out, and how to fix the error.
Many thanks in anticipation.