Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianhempel/1571200 to your computer and use it in GitHub Desktop.
Save brianhempel/1571200 to your computer and use it in GitHub Desktop.
Easy RVM install of Ruby 1.9.2-p290 with the require performance patch
#!/usr/bin/env bash
# from http://ihswebdesign.com/knowledge-base/installing-a-patched-ruby-192-for-faster-rails-startup/
echo "Downloading require performance patch from Stefan Kaes' rvm-patchsets repository..."
curl https://raw.github.com/skaes/rvm-patchsets/671f0e4e6487af7a252d86b59d645ee7beb849dd/patches/ruby/1.9.2/p290/railsexpress/05-load-performance-fix.patch > 1.9.2-p290_require_speedup.patch
echo "Installing ruby-1.9.2-p290-patched..."
rvm install 1.9.2-p290 --patch 1.9.2-p290_require_speedup.patch -n patched
echo "Setting up 1.9.2-patched alias..."
rvm alias create 1.9.2-patched ruby-1.9.2-p290-patched
echo "Type rvm 1.9.2-patched to use 1.9.2-p290 with the require performance patch!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment