Skip to content

Instantly share code, notes, and snippets.

@ysaotome
Created March 20, 2013 09:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save ysaotome/5203412 to your computer and use it in GitHub Desktop.
Save ysaotome/5203412 to your computer and use it in GitHub Desktop.
CentOS 6 rbenv setup
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
@ysaotome
Copy link
Author

メモ:Vagrantで再現可能な仮想マシン開発環境をMacに構築する
 http://qiita.com/items/a2464c27008decbfb9dc
 http://qiita.com/items/38d14a00c2fce573e10f
 http://d.hatena.ne.jp/okinaka/20110805/1312474847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment