Skip to content

Instantly share code, notes, and snippets.

@kmmndr
Created June 24, 2014 09:24
Show Gist options
  • Save kmmndr/0bf7d69d8edad346ff72 to your computer and use it in GitHub Desktop.
Save kmmndr/0bf7d69d8edad346ff72 to your computer and use it in GitHub Desktop.
quickly install a new ruby environment
TOOLS_DIR=~/work/tools
export PREFIX=$HOME/.local
mkdir -p $PREFIX
mkdir -p $TOOLS_DIR
cd $TOOLS_DIR
# ry / ruby version manager
git clone git://github.com/jayferd/ry $TOOLS_DIR/ry
pushd $TOOLS_DIR/ry
make install
popd
# ruby-build
git clone https://github.com/sstephenson/ruby-build.git $TOOLS_DIR/ruby-build
pushd $TOOLS_DIR/ruby-build
./install.sh
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment