Created
March 20, 2013 09:26
-
-
Save ysaotome/5203412 to your computer and use it in GitHub Desktop.
CentOS 6 rbenv setup
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
メモ:Vagrantで再現可能な仮想マシン開発環境をMacに構築する
http://qiita.com/items/a2464c27008decbfb9dc
http://qiita.com/items/38d14a00c2fce573e10f
http://d.hatena.ne.jp/okinaka/20110805/1312474847