Hello World

Be Happy!

when not changed rbenv local


Install

% rbenv install 3.0.0
Downloading openssl-1.1.1i.tar.gz...

But ruby -v showed 2.6.3

% rbenv local 3.0.0
% rbenv local      
3.0.0
% ruby -v           
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

Solution

% env | grep PATH                     
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin

# add below code to ~/.bash_profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

% env | grep PATH                     
PATH=/Users/xxxx/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
#ruby (11) #rbenv (1) #rehash (1)
List