LoginSignup
4
5

More than 5 years have passed since last update.

Ruby 2.2.0 インストール(CentOS 6)

Last updated at Posted at 2015-02-03

前提条件

事前に必要なパッケージがインストールされていること
CentOS 6 初期設定

手順

# git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
# echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
# echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# source ~/.bash_profile
# rbenv --version
rbenv 0.4.0-129-g7e0e85b
# git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# rbenv install --list | grep 2.2.0
  2.2.0-dev
  2.2.0-preview1
  2.2.0-preview2
  2.2.0-rc1
  2.2.0
  rbx-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]
# gem install bundler
4
5
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
4
5