rbenv: [FIXED] bash: rbenv: command not found
Just wanted to post this as a solution and not an issue for what the title says.
Just copy paste these commands as they are in a new Terminal.
cd ~
rm -rf .rbenv/
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
source ~/.bashrc
What it does is basically removes the existing directory for rbenv, and reinstalls it.
Thank You.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 122
- Comments: 15
not i still have the same problem
Thank you @aggelosy 👍
I also had this problem, followed the steps and worked, I just had to change .bashrc to .zshrc
You’re welcome
On Wed, Oct 16, 2019, 19:00 Eyitayo Alimi notifications@github.com wrote:
Fixed! Thank You! @aggelosy
Thanks you. This solution worked for me.
Thank you so much for this, it helped me resolve the issue.
I faced this error while install ruby with rbenv on centos 7 this solved the issue. Thanks !!
Works well! Thank you!
Thank you!