LoginSignup
2
2

More than 5 years have passed since last update.

最速Rubyインストール using rbenv on Ubuntu Desktop

Last updated at Posted at 2015-12-09

よくわからないけど、とりあえず最短でRubyをインストールして使いたい人へ。せめて複数バージョンのRubyを切り替えられるように設定します。

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source .bashrc
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev # install necessary packages
rbenv install -l # lists available ruby versions 
rbenv install 2.2.3

ある程度慣れ親しんでいる人は、以下を参考にするのが間違いないです。

※ ちなみに、CentOS系の場合は .bashrc.bash_profileに置き換えればOK

2
2
0

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
2
2