Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save saegey/5499096 to your computer and use it in GitHub Desktop.

Select an option

Save saegey/5499096 to your computer and use it in GitHub Desktop.

Revisions

  1. saegey created this gist May 1, 2013.
    9 changes: 9 additions & 0 deletions install rbenv and ruby-build for all users
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
    echo '# rbenv setup' > /etc/profile.d/rbenv.sh
    echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh
    echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh
    echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
    chmod +x /etc/profile.d/rbenv.sh
    source /etc/profile.d/rbenv.sh
    git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build
    rbenv install 1.9.3-p392