I’m having trouble installing rails
I followed every step of the web dev 101 up to the part where it install rails but when I put the command “gem install rails” the output is:
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /var/lib/gems/2.5.0 directory.
what I might have done wrong and what can I do to repair it?
I’ve been trying for a couple hours now, even restarted the instalation of both rbenv and ruby but nothing seems to work
EDIT: I believe this is not right, right?
input: $ rbenv -v
output: rbenv 1.0.0