Skip to content

Instantly share code, notes, and snippets.

@kirikiriyamama
Last active December 16, 2015 19:09
Show Gist options
  • Save kirikiriyamama/5482655 to your computer and use it in GitHub Desktop.
Save kirikiriyamama/5482655 to your computer and use it in GitHub Desktop.

rbenvを導入したおはなし

  1. # yum -y install libyaml libyaml-devel zlib zlib-devel readline readline-devel openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel
  2. # cd /usr/local
  3. # git clone git@github.com:sstephenson/rbenv.git rbenv
  4. # mkdir rbenv/shims rbenv/versions rbenv/plugins
  5. # cd rbenv/plugins
  6. # git clone git@github.com:sstephenson/ruby-build.git ruby-build
  7. # cd /usr/local
  8. # groupadd rbenv
  9. # chgrp -R rbenv rbenv
  10. # chmod -R g+rwxXs rbenv
  11. /etc/profile.d/rbenv.shを下記の内容で作成
export RBENV_ROOT=/usr/local/rbenv
  export PATH="$RBENV_ROOT/bin:$PATH"
  eval "$(rbenv init -)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment