10
3

More than 5 years have passed since last update.

Ubuntuにaptで手っ取り早くrbenvをインストールする

Last updated at Posted at 2016-09-24

rbenvのインストール

$ sudo apt-get install rbenv ruby-build

bashの場合

$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

zshの場合

$ echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc

rubyのインストール

# example, installing 2.2.0
$ rbenv install 2.2.0
$ rbenv global 2.2.0
$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
10
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
3