最終更新:2023-06-15 (木) 02:49:43 (330d)
rbenv
Top / rbenv
Groom your app’s Ruby environment with rbenv.
https://github.com/rbenv/rbenv
インストール
Homebrew
- brew install rbenv ruby-build
Ubuntu
- sudo apt install rbenv
シェルの初期化
- rbenv initで初期設定を表示
Linux
macOS
- .zshrcに追加
個別のプロジェクト
- .ruby-version?に書くと自動で切り替わる
メモ
rbenv install 2.3.3 rbenv global 2.3.3
help
Usage: rbenv <command> [<args>] Some useful rbenv commands are: commands List all available rbenv commands local Set or show the local application-specific Ruby version global Set or show the global Ruby version shell Set or show the shell-specific Ruby version install Install a Ruby version using ruby-build uninstall Uninstall a specific Ruby version rehash Rehash rbenv shims (run this after installing executables) version Show the current Ruby version and its origin versions List installed Ruby versions which Display the full path to an executable whence List all Ruby versions that contain the given executable See `rbenv help <command>' for information on a specific command. For full documentation, see: https://github.com/rbenv/rbenv#readme