brew update
brew upgrade
% brew --version
Homebrew 4.0.11
Homebrew/homebrew-core (git revision e9b537f0839; last commit 2023-03-12)
Homebrew/homebrew-cask (git revision a992121346; last commit 2023-03-12)
brew install rbenv
Add these two lines to .zshrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init - zsh)"
brew install libyaml
brew install virtualenv
rbenv install -l
rbenv install 2.7.8
rbenv install 3.0.6
rbenv install 3.1.4
rbenv install 3.2.2
rbenv global 2.7.8
ruby --version
ruby -e "puts (1..100).reduce(:+)"
rbenv global 3.2.2
ruby --version
ruby -e "puts (1..100).reduce(:+)"
No comments:
Post a Comment