Skip to content

Instantly share code, notes, and snippets.

@trueheart78
Last active August 31, 2016 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trueheart78/0396e29d2465062529ca88333dd00b47 to your computer and use it in GitHub Desktop.
Save trueheart78/0396e29d2465062529ca88333dd00b47 to your computer and use it in GitHub Desktop.
Chruby + Ruby Install Setup
#!/usr/bin/env bash
# chruby - https://github.com/postmodern/chruby
wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install
echo "Add to you shellrc file: source /usr/local/share/chruby/chruby.sh"
# ruby-install - https://github.com/postmodern/ruby-install
wget -O ruby-install-0.6.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.6.0.tar.gz
tar -xzvf ruby-install-0.6.0.tar.gz
cd ruby-install-0.6.0/
sudo make install
ruby-install ruby 2.3
ruby-install -M https://ftp.ruby-lang.org/pub/ruby ruby 2.0.0-p645
echo "Reload your shellrc file: source ~/.bashrc or source ~/.zshrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment