Skip to content

Instantly share code, notes, and snippets.

@havenwood
havenwood / chruby_local.sh
Last active June 21, 2023 07:03
Install the latest stable Ruby as a local user (non-root).
##
# A non-root installation of the latest Ruby with chruby
# Install chruby (https://github.com/postmodern/chruby#readme)
mkdir -p $HOME/src
cd $HOME/src
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/
PREFIX=$HOME/.chruby make install