Created
March 2, 2012 08:21
-
-
Save exu/1956745 to your computer and use it in GitHub Desktop.
Ruby installation with rbenv
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
#!/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