Skip to content

Instantly share code, notes, and snippets.

@aileron
Created March 22, 2012 06:31
Show Gist options
  • Save aileron/2156651 to your computer and use it in GitHub Desktop.
Save aileron/2156651 to your computer and use it in GitHub Desktop.
ruby のインストール方法 ( rbenv + ruby-build )
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zprofile
echo 'eval "$(rbenv init -)"' >> ~/.zprofile
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.9.3-p0
rbenv global 1.9.3-p0
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment