Created
March 10, 2013 22:16
-
-
Save ngpestelos/5130751 to your computer and use it in GitHub Desktop.
install rbenv (ruby 1.9.3-p385) on a basebox
This file contains hidden or 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/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