Last active
December 14, 2015 03:08
-
-
Save ngpestelos/5018445 to your computer and use it in GitHub Desktop.
Install rbenv 1.9.3-p385-perf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested on Debian 6.06 (Squeeze) 64-bit. Your mileage may vary.