Im trying to install jekyll through ruby rbnev and After putting open ~/.bash_profile into the terminal and inputting eval "$(rbenv init -bash)" into the text editor, which was the only thing inside it, I closed everything and opened up terminal to see the above error message -bash: rbenv: command not found. No rbenv commands work and gem install jekyll yeilds the following:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
I looked all across the internet and couldn't find any help. Any help would be appreciated!
I tried almost everything. I've been stuck on this for 20 min. I detailed my path on the "details of the problem"
You made a typo.
The line in
.bash_profileshould be: