Skip to content

Instantly share code, notes, and snippets.

@exu
Created March 2, 2012 08:21
Show Gist options
  • Save exu/1956745 to your computer and use it in GitHub Desktop.
Save exu/1956745 to your computer and use it in GitHub Desktop.
Ruby installation with rbenv
#!/usr/bin/env sh
rm -rf ~/.rbenv/
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init -)"' >> ~/.zshenv
# Ruby build (rbenv don't have install command by default)
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
rbenv install 1.9.3-p125
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment