Skip to content

Instantly share code, notes, and snippets.

@UshF
Forked from ysaotome/CentOS6_rbenv_setup.sh
Created May 2, 2014 19:46
Show Gist options
  • Save UshF/aea96c3df4c7bd67c6c7 to your computer and use it in GitHub Desktop.
Save UshF/aea96c3df4c7bd67c6c7 to your computer and use it in GitHub Desktop.
yum --enablerepo=rpmforge,epel,remi -y install gcc make zlib zlib-devel openssl-devel zsh
cd /usr/local
git clone git://github.com/sstephenson/rbenv.git rbenv
mkdir rbenv/shims rbenv/versions
chgrp -R groupname rbenv
chmod -R g+rwxXs rbenv
git clone git://github.com/sstephenson/ruby-build.git ruby-build
cd ruby-build
./install.sh
cat << _ZSHCONF_ >> ~/.zshrc
## rbenv config
export RBENV_ROOT="/usr/local/rbenv"
export PATH="/usr/local/rbenv/bin:${PATH}"
eval "$(rbenv init -)"
_ZSHCONF_
rehash
rbenv install 1.9.3-p392
rbenv global 1.9.3-p392
rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment