Skip to content

Instantly share code, notes, and snippets.

@ngpestelos
Created March 10, 2013 22:16
Show Gist options
  • Save ngpestelos/5130751 to your computer and use it in GitHub Desktop.
Save ngpestelos/5130751 to your computer and use it in GitHub Desktop.
install rbenv (ruby 1.9.3-p385) on a basebox
#!/bin/sh
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
# Install ruby-build
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# Install ruby
RUBY_CONFIGURE_OPTS=--with-openssl-dir="/usr/local/openssl"
CONFIGURE_OPTS=--with-readline-dir="/usr/local/readline"
CFLAGS="-O3 -fomit-frame-pointer -pipe -funroll-loops"
VERSION=1.9.3-p385
curl https://raw.github.com/gist/4760936/1-$VERSION-patched.sh > /tmp/$VERSION-perf
rbenv install /tmp/$VERSION-perf
# Clean up
rm -rf /tmp/$VERSION-perf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment