Skip to content

Instantly share code, notes, and snippets.

@ngpestelos
Last active December 14, 2015 03:08
Show Gist options
  • Save ngpestelos/5018445 to your computer and use it in GitHub Desktop.
Save ngpestelos/5018445 to your computer and use it in GitHub Desktop.
Install rbenv 1.9.3-p385-perf
#!/bin/bash
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
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
rm -rf /tmp/$VERSION-perf
@ngpestelos
Copy link
Author

Tested on Debian 6.06 (Squeeze) 64-bit. Your mileage may vary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment