-
-
Save UshF/aea96c3df4c7bd67c6c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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