macbookproにrbenv をインストールする
環境 mac OS10.8.5
macにrbevn をインストールします。
macbookair でも macmini でも同じ手順のはず。
homebrew を使います。
homebrew まだ入れてない方は、homebrew のインストールの方法を参考にどうぞ。
# rbenv のインストール % brew install rbenv # パスを通したり、諸設定。bash のひとは~/.bashrc かな。 % echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc % echo 'eval "$(rbenv init -)"' >> ~/.zshrc # 設定の再読み込み % source ~/.zshrc
このようになったらok。
% rbenv rbenv 0.4.0 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 all Ruby versions available to rbenv 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.